DropCreateDatabaseAlways(Of TContext) Class
Entity Framework 5.0
An implementation of IDatabaseInitializer(Of TContext) that will always recreate and optionally re-seed the database with data the first time that a context is used in the application domain. To seed the database, create a derived class and override the Seed method.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
The DropCreateDatabaseAlways(Of TContext) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DropCreateDatabaseAlways(Of TContext) | Initializes a new instance of the DropCreateDatabaseAlways(Of TContext) class. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | InitializeDatabase | Executes the strategy to initialize the database for the given context. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | Seed | When overridden will add data to the context for seeding. The default implementation does nothing. |
![]() | ToString | (Inherited from Object.) |
Show:
