unable to use custom database initializer
问题 I am building a simple MVC application for managing a library. For development purposes, I would like the EF to drop and recreate the database everytime the model changes, as well as filling it with some sample data. At this moment I struggle at getting the initializer to work. The Initializer class looks like this: public class LibraryInitializer : DropCreateDatabaseIfModelChanges<LibraryContext> { protected override void Seed(LibraryContext context) { // sample data to be writted to the DB