Beispiel #1
0
 public RepositoryManager(SqliteContext context)
 {
     _context             = context;
     _siteRepo            = new Repository <SiteEntity>(_context);
     _materialRepo        = new Repository <MaterialEntity>(_context);
     _customerRepo        = new Repository <CustomerEntity>(_context);
     _vendorRepo          = new Repository <VendorEntity>(_context);
     _supervisorRepo      = new Repository <SupervisorEntity>(_context);
     _contractorRepo      = new Repository <ContractorEntity>(_context);
     _workTypeRepo        = new Repository <WorkTypeEntity>(_context);
     _labourRepo          = new Repository <LabourEntity>(_context);
     _materialTypeRepo    = new Repository <MaterialTypeEntity>(_context);
     _unitTypeRepo        = new Repository <UnitEntity>(_context);
     _debitCreditRepo     = new Repository <DebitCreditEntity>(_context);
     _deletedCustomerRepo = new Repository <CustomerDeleted>(_context);
 }
 public Repository(SqliteContext context)
 {
     Items    = context.Set <T>();
     _context = context;
 }