How to apply migrations from code
for EF6 work code
Database.SetInitializer(null); var settings = new MigrationsConfiguratio
In beta 7 and on, use:
using Microsoft.Data.Entity; ... context.Database.Migrate();