public ADOUnitOfWork(string connectionString) { _context = new ADODataContext(connectionString); Products = new ProductRepository(_context); Categories = new CategoryRepository(_context); Providers = new ProviderRepository(_context); }
public ProductRepository(ADODataContext context) { _context = context; _table = _context.Products; }
public ProviderRepository(ADODataContext context) { _context = context; _table = _context.Providers; }
public CategoryRepository(ADODataContext context) { db = context; _table = db.Categories; }