Example #1
0
 public WorkflowStageRepository(RASContext rasContext)
 {
     if (rasContext == null)
     {
         throw new Exception("RAS Context can not be null.");
     }
     _RASContext = rasContext;
 }
Example #2
0
 public TaskRepository(string pwaConnString, RASContext rasContext)
 {
     _PWAConnString = pwaConnString;
     _RASContext    = rasContext;
 }
 public DailyLeaveRepository(RASContext rasContext)
 {
     _RASContext = rasContext;
 }
 public HourlyMissionRepository(RASContext rasContext)
 {
     _RASContext = rasContext;
 }
Example #5
0
 public HolidayRepository(RASContext rasContext)
 {
     //_PWAConnString = pwaConnString;
     _RASContext = rasContext;
 }
Example #6
0
 public WorkHourRepository(RASContext rasContext)
 {
     //_PWAConnString = pwaConnString;
     _RASContext = rasContext;
 }
Example #7
0
 public OrgUnitRepository(RASContext rasContext)
 {
     //_PWAConnString = pwaConnString;
     _RASContext = rasContext;
 }
        public UnitOfWork()
        {
            _PWAConnString = ConfigurationManager.ConnectionStrings["PWAConnectionString"].ConnectionString.ToString();

            _Context = new RASContext();
        }
 public DisplayPeriodRepository(RASContext rasContext)
 {
     //_PWAConnString = pwaConnString;
     _RASContext = rasContext;
 }
Example #10
0
 public UnitOfWork(RASContext context)
 {
     this._Context  = context;
     _PWAConnString = context.Database.GetDbConnection().ConnectionString;
 }
Example #11
0
 public CalendarRepository(RASContext rasContext)
 {
     //_PWAConnString = pwaConnString;
     _RASContext = rasContext;
 }
Example #12
0
 public AssignmentRepository(string pwaConnString, RASContext rasContext)
 {
     _PWAConnString = pwaConnString;
     _RASContext    = rasContext;
 }