DropCreateDatabaseAlways(Of TContext) Class
An implementation of IDatabaseInitializer that will always recreate and optionally re-seed the database the first time that a context is used in the app domain. To seed the database, create a derived class and override the Seed method.
Assembly: EntityFramework (in EntityFramework.dll)
| Name | Description | |
|---|---|---|
![]() | DropCreateDatabaseAlways(Of TContext)() | Initializes a new instance of the DropCreateDatabaseAlways(Of TContext) class. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | InitializeDatabase(TContext) | Executes the strategy to initialize the database for the given context. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | Seed(TContext) | A method that should be overridden to actually add data to the context for seeding. The default implementation does nothing. |
![]() | ToString() | (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.

