コード例 #1
0
 public static void UpdateDatabase(this DbContext context, IConfiguration configuration, string providerName)
 {
     var migrator = new Migrator(configuration, context.GetType().Assembly.FullName);
     migrator.UpdateDatabase(migrator.GetConfiguration(providerName: providerName));
 }