Exemple #1
0
 public UnitOfWork(VegaContext context)
 {
     _context             = context;
     Clients              = new ClientRepository(_context);
     Users                = new UserRepository(_context);
     Supplier             = new SupplierRepository(_context);
     Component            = new ComponentRepository(_context);
     ImportingInvoice     = new ImportingInvoiceRepository(_context);
     UGroup               = new GroupsRepository(_context);
     FabricationOrder     = new FabricationOrderRepository(_context);
     Expence              = new ExpenceRepository(_context);
     ExpenceCat           = new  ExpenceCatRepository(_context);
     GroupPermission      = new  GroupPermissionRepository(_context);
     Permission           = new PermissionRepository(_context);
     Sequence             = new SequenceRepository(_context);
     Nomenclature         = new NomenclatureRepository(_context);
     NomenclatureSequence = new NomenclatureSequenceRepository(_context);
     Color                = new ColorRepository(_context);
     SellingInvoices      = new SellingInvoicesRepository(_context);
     RawMaterials         = new RawMaterialsRepository(_context);
     UsedRawMaterial      = new UsedRawMaterialRepository(_context);
     ProgressionChecks    = new ProgressionChecksRepository(_context);
 }
Exemple #2
0
 public UserGroupServices(PXHotelEntities entities)
 {
     _userGroupRepository = new UserGroupRepository(entities);
     _groupPermissionRepository = new GroupPermissionRepository(entities);
     _localizedResourceServices = HostContainer.GetInstance<ILocalizedResourceServices>();
 }
Exemple #3
0
 public UserGroupServices(PXHotelEntities entities)
 {
     _userGroupRepository       = new UserGroupRepository(entities);
     _groupPermissionRepository = new GroupPermissionRepository(entities);
     _localizedResourceServices = HostContainer.GetInstance <ILocalizedResourceServices>();
 }