예제 #1
0
 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);
            }
        }
예제 #3
0
 public OrganizationRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <Organization>(_uoWork);
 }
예제 #4
0
 public UserRoleRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <UserRole>(_uoWork);
 }
 public SerialGeneratorRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <SerialNumberKeeper>(_uoWork);
 }
예제 #6
0
 public EnrollerRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <Enroller>(_uoWork);
 }
 public UserLoginActivityRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <UserLoginActivity>(_uoWork);
 }
예제 #8
0
 public BeneficiaryRepository()
 {
     _uoWork     = new DataKioskUoWork();
     _repository = new DataKioskRepository <Beneficiary>(_uoWork);
 }