public UnitOfWork(string connectionString) { var optionsBuilder = new DbContextOptionsBuilder <DeliveryDataBaseContext>(); var options = optionsBuilder.UseSqlServer(connectionString).Options; context = new DeliveryDataBaseContext(options); }
public ProductsRepository(DeliveryDataBaseContext context) { _db = context; }
public CustomersRepository(DeliveryDataBaseContext context) { _db = context; }