Beispiel #1
0
 public UnitOfWork(EDataServeContext context)
 {
     _context          = context;
     Companies         = new CompanyRepository(_context);
     Products          = new ProductRepository(_context);
     ProductCatagories = new ProductCatagoryRepository(_context);
 }
Beispiel #2
0
 public CompanyRepository(EDataServeContext context) : base(context)
 {
     _context = context;
 }
Beispiel #3
0
 public ProductCatagoryRepository(EDataServeContext context) : base(context)
 {
     _context = context;
 }
 public ProductRepositoryAsync(EDataServeContext context) : base(context)
 {
     _context = context;
 }
Beispiel #5
0
 public UnitOfWorkAsync(EDataServeContext context)
 {
     _context = context;
     Products = new ProductRepositoryAsync(_context);
 }