コード例 #1
0
 public UnitOfWork(CustomerContext context)
 {
     _context  = context;
     Customers = new CustomerRepository(_context);
 }
コード例 #2
0
 public CustomerRepository(CustomerContext context)
     : base(context)
 {
 }
コード例 #3
0
 public DbInitializer(CustomerContext context)
 {
     _context = context;
     _context.Database.EnsureCreated();
 }