示例#1
0
        public void teacherName(int id)
        {
            DB35Entities db = new DB35Entities();

            TeacherName = db.People.Where(x => x.Id == id).SingleOrDefault().FirstName + ' ' + db.People.Where(x => x.Id == id).SingleOrDefault().LastName;
        }
示例#2
0
        public void sectionName(int id)
        {
            DB35Entities db = new DB35Entities();

            SectionName = db.Sections.Where(x => x.SectionId == id).SingleOrDefault().Name;
        }
示例#3
0
        public void className(int id)
        {
            DB35Entities db = new DB35Entities();

            ClassName = db.Classes.Where(x => x.ClassId == id).SingleOrDefault().Name;
        }