Example #1
0
 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;
 }
Example #5
0
 public LessonStore(DbContext context)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     Context           = context;
     _lessonInfoStore  = new EntityStore <LessonInfo>(context);
     _lessonAsignStore = new EntityStore <LessonAsign>(context);
 }
Example #6
0
 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>();
 }
Example #8
0
 public LeaveStore(DbContext context)
     : base(context)
 {
     _userStore = new EntityStore <User>(context);
 }