コード例 #1
0
        public static List <Teacher> TeacherList()
        {
            var result = (from teacher in SAADBContext.GetInstance().Teachers
                          let FullName = teacher.LastName + ", " + teacher.FirstName
                                         select teacher
                          ).ToList();

            return(result);
        }
コード例 #2
0
 public int GetStudentId(string studentno)
 {
     return(SAADBContext.GetInstance().Students.SingleOrDefault(t => t.StudentNo == studentno).StudentId);
 }
コード例 #3
0
 public EnrollmentModule()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #4
0
 public RequirementChecklist()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #5
0
 public StudentRecord()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #6
0
 public SectionForm(int SectionId)
 {
     InitializeComponent();
     _context = new SAADBContext();
     _section = _context.Sections.FirstOrDefault(t => t.SectionId == SectionId);
 }
コード例 #7
0
 public SectionForm()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #8
0
 public StudentMasterList()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #9
0
 public Schedule()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }
コード例 #10
0
 public ManageSubjects()
 {
     InitializeComponent();
     _context = new SAADBContext();
 }