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.

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Data.Entity.NullDatabaseInitializer<TContext>

public class NullDatabaseInitializer<TContext> : IDatabaseInitializer<TContext>
where TContext : DbContext

Type Parameters

TContext

The type of the context.

NameDescription
System_CAPS_pubmethodNullDatabaseInitializer<TContext>()

Initializes a new instance of the NullDatabaseInitializer<TContext> class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeDatabase(TContext)

Executes the strategy to initialize the database for the given context.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(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.