Community

Database Initializers and EF Code First – Database.SetInitializer

(David Hayden) In addition to the features mentioned in the tutorials above, another feature worth mentioning are Database Initializers. Database Initializers allow you to run custom logic the first time a DbContext class is first used in your application. In the example below I will use it to popul

Read More - Register for Free Membership