CreateDatabaseIfNotExists<TContext>.InitializeDatabase Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

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

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

public virtual void InitializeDatabase(
	TContext context
)

Parameters

context
Type: TContext
The context.

Implements

IDatabaseInitializer<TContext>.InitializeDatabase(TContext)
Show: