コード例 #1
0
 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);
 }