Пример #1
0
 private static void initializeChina(AirFreightDbContext db)
 {
     if (db.China.Count() != 0)
     {
         return;
     }
     db.China.AddRange(china);
     db.SaveChanges();
 }
Пример #2
0
 private static void initializeAustralia(AirFreightDbContext db)
 {
     if (db.Australia.Count() != 0)
     {
         return;
     }
     db.Australia.AddRange(australia);
     db.SaveChanges();
 }
Пример #3
0
 public static void Initialize(AirFreightDbContext db)
 {
     initializeAmerica(db);
     initializeAustralia(db);
     initializeChina(db);
 }
Пример #4
0
 public ChinaRepository(AirFreightDbContext c) : base(c, c.China)
 {
 }
 public AmericaRepository(AirFreightDbContext c) : base(c, c.America)
 {
 }
Пример #6
0
 public AustraliaRepository(AirFreightDbContext c) : base(c, c.Australia)
 {
 }