|
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
Public Enumeration DatabaseInitializerKind
Members
| Member name | Value | Description |
---|
| CreateDatabaseIfNotExists | 0 |
CreateDatabaseIfNotExists
Will recreate and optionally re-seed the database only if the database does not
exist.
|
| DropCreateDatabaseAlways | 1 |
DropCreateDatabaseAlways
Will always recreate and optionally re-seed the database the first time that a
context is used in the app domain.
|
| DropCreateDatabaseIfModelChanges | 2 |
DropCreateDatabaseIfModelChanges
Will delete, recreate, and optionally re-seed the database only if the model has
changed since the database was created.
|
| MigrateDatabaseToLatestVersion | 3 |
MigrateDatabaseToLatestVersion
Will use Code First Migrations to update the database to the latest version.
|
| None | 4 |
None
Null configuration. Will not check database for correctness, speeding up
initialization and queries.
|
See Also