public override void EnsureSeeded() { Log.Debug("seeding..."); if (!MasterFacilities.Any()) { var data = SeedDataReader.ReadCsv <MasterFacility>(typeof(MnchContext).Assembly, "Seed", "|"); MasterFacilities.AddRange(data); } if (!Dockets.Any()) { var data = SeedDataReader.ReadCsv <Docket>(typeof(MnchContext).Assembly, "Seed", "|"); Dockets.AddRange(data); } if (!Subscribers.Any()) { var data = SeedDataReader.ReadCsv <Subscriber>(typeof(MnchContext).Assembly, "Seed", "|"); Subscribers.AddRange(data); } SaveChanges(); Log.Debug("seeding DONE"); }