Click or drag to resize
EF Visual Editor

DatabaseInitializerKind Enumeration

DomainEnumeration: DatabaseInitializerKind Description for Sawczyn.EFDesigner.EFModel.DatabaseInitializerKind

Namespace:  Sawczyn.EFDesigner.EFModel
Assembly:  Sawczyn.EFDesigner.EFModel.Dsl (in Sawczyn.EFDesigner.EFModel.Dsl.dll) Version: 2.0.5.3 (2.0.5.3)
Syntax
public enum DatabaseInitializerKind
Members
  Member nameValueDescription
CreateDatabaseIfNotExists0 CreateDatabaseIfNotExists Will recreate and optionally re-seed the database only if the database does not exist.
DropCreateDatabaseAlways1 DropCreateDatabaseAlways Will always recreate and optionally re-seed the database the first time that a context is used in the app domain.
DropCreateDatabaseIfModelChanges2 DropCreateDatabaseIfModelChanges Will delete, recreate, and optionally re-seed the database only if the model has changed since the database was created.
MigrateDatabaseToLatestVersion3 MigrateDatabaseToLatestVersion Will use Code First Migrations to update the database to the latest version.
None4 None Null configuration. Will not check database for correctness, speeding up initialization and queries.
See Also