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

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