Entity Framework Code First: Configuration.cs seed or custom initializer
问题 I am working with the the Code First style of the Entity Framework for my first time. I want to set up some default data. The first approach I came across involved creating a custom initializer. I was headed this route but noticed after setting up migrations that it came with the Configuration.cs that already overrides the seed method just like the custom initializer. internal sealed class Configuration : DbMigrationsConfiguration<Toolkit.Model.ToolkitContext> { public Configuration() {