NullDatabaseInitializer<TContext> Class
An implementation of IDatabaseInitializer<TContext> that does nothing. Using this initializer disables database initialization for the given context type. Passing an instance of this class to SetInitializer<TContext> is equivalent to passing null. When IDbDependencyResolver is being used to resolve initializers an instance of this class must be used to disable initialization.
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() | NullDatabaseInitializer<TContext>() | Initializes a new instance of the NullDatabaseInitializer<TContext> class. |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | InitializeDatabase(TContext) | Executes the strategy to initialize the database for the given context. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.