public List <Person> GetAllPerson() { context = new HighSchoolContext(); var personList = (from p in context.Person orderby p.PersonId select p).ToList <Person>(); return(personList); }
public Person GetPersonById(long id) { context = new HighSchoolContext(); var per1 = (from p in context.Person orderby p.PersonId where p.PersonId == id select p).FirstOrDefault(); var per = context.Person.Where(p => p.PersonId == id).FirstOrDefault(); return(per); }
public ResultRepository(HighSchoolContext context) : base(context) { }
public StudentRepository(HighSchoolContext context) : base(context) { }
public TeacherRepository(HighSchoolContext context) : base(context) { }
public TeachingAssignmentRepository(HighSchoolContext context) : base(context) { }
public SemesterRepository(HighSchoolContext context) : base(context) { }
public ClassRepository(HighSchoolContext context) : base(context) { }
public SubjectRepository(HighSchoolContext context) : base(context) { }