NullDatabaseInitializer<TContext> NullDatabaseInitializer<TContext> NullDatabaseInitializer<TContext> Class

Definition

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

public class NullDatabaseInitializer<TContext> : System.Data.Entity.IDatabaseInitializer<TContext> where TContext : DbContext
type NullDatabaseInitializer<'Context (requires 'Context :> DbContext)> = class
    interface IDatabaseInitializer<'Context (requires 'Context :> DbContext)>
Public Class NullDatabaseInitializer(Of TContext)
Implements IDatabaseInitializer(Of TContext)

Type Parameters

TContext

The type of the context.

Inheritance
NullDatabaseInitializer<TContext>NullDatabaseInitializer<TContext>NullDatabaseInitializer<TContext>
Implements

Constructors

NullDatabaseInitializer<TContext>() NullDatabaseInitializer<TContext>() NullDatabaseInitializer<TContext>()

Methods

InitializeDatabase(TContext) InitializeDatabase(TContext) InitializeDatabase(TContext)

Applies to