private static void initializeRussiaAndCIS(RoadFreightDbContext db) { if (db.RussiaAndCIS.Count() != 0) { return; } db.RussiaAndCIS.AddRange(russiaCIS); db.SaveChanges(); }
private static void initializeScandinavia(RoadFreightDbContext db) { if (db.Scandinavia.Count() != 0) { return; } db.Scandinavia.AddRange(scandinavia); db.SaveChanges(); }
private static void initializeBaltic(RoadFreightDbContext db) { if (db.Baltics.Count() != 0) { return; } db.Baltics.AddRange(baltic); db.SaveChanges(); }
public static void Initialize(RoadFreightDbContext db) { initializeBaltic(db); initializeRussiaAndCIS(db); initializeScandinavia(db); }
public RussiaCISRepository(RoadFreightDbContext c) : base(c, c.RussiaAndCIS) { }
public ScandinaviasRepository(RoadFreightDbContext c) : base(c, c.Scandinavia) { }
public BalticsRepository(RoadFreightDbContext c) : base(c, c.Baltics) { }