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