public UnitOfWork(MyMusicContext context)
 {
     this.context     = context;
     EmployeeAccounts = new EmployeeAccountRepository(this.context);
     Products         = new ProductRepository(this.context);
     Customers        = new CustomerRepository(this.context);
     Employees        = new EmployeeRepository(this.context);
     Orders           = new OrderRepository(this.context);
     Logs             = new LogRepository(this.context);
 }
 public EmployeeRepository(MyMusicContext context) : base(context)
 {
 }
Ejemplo n.º 3
0
 public ProductRepository(MyMusicContext context) : base(context)
 {
 }
 public CustomerRepository(MyMusicContext context) : base(context)
 {
 }
 public OrderRepository(MyMusicContext context) : base(context)
 {
 }
 public LogRepository(MyMusicContext context) : base(context)
 {
 }