Пример #1
0
 public UnitOfWork(CustomerContext context)
 {
     _context  = context;
     Customers = new CustomerRepository(_context);
 }
Пример #2
0
 public CustomerRepository(CustomerContext context)
     : base(context)
 {
 }
 public DbInitializer(CustomerContext context)
 {
     _context = context;
     _context.Database.EnsureCreated();
 }