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;
 }
Exemple #4
0
        public DefaultBaseCreator(BatchDbContext context)
        {
            BatchContext = context;

            TenantId = 1;
        }
Exemple #5
0
 public BatchDbInit(BatchDbContext batchContext)
 {
     _batchContext = batchContext;
 }
Exemple #6
0
 public DefaultCustomerCreator(BatchDbContext context) : base(context)
 {
 }
 protected override void Seed(BatchDbContext context)
 {
     new BatchDbInit(context).Create();
 }