public BatchRepository(BatchDbContext db) { this.db = db; if (!this.db.Batches.Any()) { this.SeedDummy(); } }
public HomeController(BatchDbContext db, ApplicationDbContext appDb) { this.db = db; this.appDb = appDb; this.db.Database.EnsureCreated(); this.appDb.Database.EnsureCreated(); if (!this.db.Batches.Any()) { this.SeedDummy(); } }
public TraineesController(BatchDbContext context) { _context = context; }
public DefaultBaseCreator(BatchDbContext context) { BatchContext = context; TenantId = 1; }
public BatchDbInit(BatchDbContext batchContext) { _batchContext = batchContext; }
public DefaultCustomerCreator(BatchDbContext context) : base(context) { }
protected override void Seed(BatchDbContext context) { new BatchDbInit(context).Create(); }