An implementation of IDatabaseInitializer that will DELETE, recreate, and optionally re-seed the database only if the model has changed since the database was created.
Assembly: EntityFramework (in EntityFramework.dll)
Initializes a new instance of theclass.
Executes the strategy to initialize the database for the given context.
A method that should be overridden to actually add data to the context for seeding. The default implementation does nothing.
Whether or not the model has changed is determined by the CompatibleWithModel method. To seed the database create a derived class and override the Seed method.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.