public void Configure(IServerRoutingTable serverRoutingTable) { // Once on start using (var db = new ScaleDeliDbContext()) { db.Database.EnsureCreated(); } }
public ReceiptsService(ScaleDeliDbContext db) { this.db = db; }
public PackagesService(ScaleDeliDbContext db, IReceiptsService receiptsService) { this.db = db; this.receiptsService = receiptsService; }
public UsersService(ScaleDeliDbContext db) { this.db = db; }