예제 #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();
 }