Пример #1
0
 public ShopDBContext(DbContextOptions options) : base(options)
 {
     if (Database.GetPendingMigrations().Count() > 0)
     {
         Database.Migrate();
     }
 }