public ClientStationRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <ClientStation>(_uoWork); _enrollerRepository = new DataKioskRepository <Enroller>(_uoWork); _localRepository = new DataKioskRepository <LocalArea>(_uoWork); _organizationRepository = new DataKioskRepository <Organization>(_uoWork); }
public static long Generate() { try { _uoWork = new DataKioskUoWork(/*You can specify you custom context here*/); _repository = new DataKioskRepository <SerialNumberKeeper>(_uoWork); Purge(); var processedScratchPin = _repository.Add(new SerialNumberKeeper()); _uoWork.SaveChanges(); return(processedScratchPin.SerialNumberKeeperId); } catch (Exception ex) { BugManager.LogApplicationBug(ex.StackTrace, ex.Source, ex.Message); return(0); } }
public OrganizationRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <Organization>(_uoWork); }
public UserRoleRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <UserRole>(_uoWork); }
public SerialGeneratorRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <SerialNumberKeeper>(_uoWork); }
public EnrollerRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <Enroller>(_uoWork); }
public UserLoginActivityRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <UserLoginActivity>(_uoWork); }
public BeneficiaryRepository() { _uoWork = new DataKioskUoWork(); _repository = new DataKioskRepository <Beneficiary>(_uoWork); }