Exemplo n.º 1
0
        public ADOUnitOfWork(string connectionString)
        {
            _context = new ADODataContext(connectionString);

            Products   = new ProductRepository(_context);
            Categories = new CategoryRepository(_context);
            Providers  = new ProviderRepository(_context);
        }
Exemplo n.º 2
0
 public ProductRepository(ADODataContext context)
 {
     _context = context;
     _table   = _context.Products;
 }
Exemplo n.º 3
0
 public ProviderRepository(ADODataContext context)
 {
     _context = context;
     _table   = _context.Providers;
 }
Exemplo n.º 4
0
 public CategoryRepository(ADODataContext context)
 {
     db     = context;
     _table = db.Categories;
 }