public UnitOfWork(CustomerContext context) { _context = context; Customers = new CustomerRepository(_context); }
public CustomerRepository(CustomerContext context) : base(context) { }
public DbInitializer(CustomerContext context) { _context = context; _context.Database.EnsureCreated(); }