public UserStore(DbContext context) : base(context) { _userStore = new EntityStore <User>(context); _loginLogStore = new EntityStore <LoginLog>(context); _loginLogs = Context.Set <LoginLog>(); _teacherInfoStore = new EntityStore <TeacherInfo>(context); _studentInfoStore = new EntityStore <StudentInfo>(context); }
private void Dispose(bool disposing) { if (this.DisposeContext && disposing && this.Context != null) { this.Context.Dispose(); } this._disposed = true; this.Context = (DbContext)null; this._departmentStore = (EntityStore <Department>)null; }
public void Dispose(bool disposing) { if (this.DisposeContext && disposing && this.Context != null) { this.Context.Dispose(); } this.Disposed = true; this.Context = (DbContext)null; this.ConfigStore = (EntityStore <LeaveConfig>)null; }
public LeaveConfigStore(DbContext context) { if (context == null) { throw new ArgumentNullException("context"); } this.Context = context; this.ConfigStore = new EntityStore <LeaveConfig>(context); this.AutoSaveChanges = true; }
public LessonStore(DbContext context) { if (context == null) { throw new ArgumentNullException("context"); } Context = context; _lessonInfoStore = new EntityStore <LessonInfo>(context); _lessonAsignStore = new EntityStore <LessonAsign>(context); }
public void Dispose(bool disposing) { if (this.DisposeContext && disposing && this.Context != null) { this.Context.Dispose(); } this.Disposed = true; this.Context = (DbContext)null; this._lessonInfoStore = null; this._lessonAsignStore = null; }
public InstitutionStore(DbContext context) { if (context == null) { throw new ArgumentNullException("context"); } this.Context = context; this._classStore = new EntityStore <Class>(context); this._departmentStore = new EntityStore <Department>(context); this._gradeStore = new EntityStore <Grade>(context); this._majorStore = new EntityStore <Major>(context); _officeStore = new EntityStore <Office>(context); _officeStore = new EntityStore <Office>(context); this.AutoSaveChanges = true; //this._classes = Context.Set<Class>(); //this._departments = Context.Set<Department>(); //this._grades = Context.Set<Grade>(); //_majors = Context.Set<Major>(); }
public LeaveStore(DbContext context) : base(context) { _userStore = new EntityStore <User>(context); }