public GenericRepository(DataEntities.Models.TimeTable context) { this.context = context; this.dbSet = context.Set <TEntity>(); }
public SubjectOfferingRepository(DataEntities.Models.TimeTable context) { SchoolID = context.tblUsers.Where(u => u.Email.Equals(HttpContext.Current.User.Identity.Name)).FirstOrDefault().SchoolID; this.context = context; }
public SchoolRepository(DataEntities.Models.TimeTable context) { this.context = context; }