예제 #1
0
        public UnitOfWork(string connectionString)
        {
            var optionsBuilder = new DbContextOptionsBuilder <DeliveryDataBaseContext>();
            var options        = optionsBuilder.UseSqlServer(connectionString).Options;

            context = new DeliveryDataBaseContext(options);
        }
예제 #2
0
 public ProductsRepository(DeliveryDataBaseContext context)
 {
     _db = context;
 }
예제 #3
0
 public CustomersRepository(DeliveryDataBaseContext context)
 {
     _db = context;
 }