Export (0) Print
Expand All
0 out of 17 rated this helpful - Rate this topic

IDatabaseInitializer<TContext> Interface

Entity Framework 5.0

Defines a method for the database initializer.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)
public interface IDatabaseInitializer<in TContext>
where TContext : DbContext

Type Parameters

in TContext

The type of the context.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see http://msdn.microsoft.com/en-us/library/dd799517(v=vs.103).aspx.

The IDatabaseInitializer<TContext> type exposes the following members.

Public methodInitializeDatabaseExecutes the strategy to initialize the database for the given context.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.