示例#1
0
 private static void AssignStudents(Class c)
 {
     WriteTitle("Assign Student to " + c.Name);
     WriteStudentMenu(dstore.LoadEntireTable <Student>(), r =>
     {
         StudentClasses stdClas = new StudentClasses();
         stdClas.Class          = c.ID;
         stdClas.Student        = r;
         dstore.InsertObject(stdClas);
     });
 }
示例#2
0
        private static void AssignClass(Student c)
        {
            WriteTitle("Choose Class");
            WriteClassMenu(dstore.LoadEntireTable <Class>().ToList(), r =>
            {
                StudentClasses stdClass = new StudentClasses();
                stdClass.Student        = c.ID;
                stdClass.Class          = r;

                dstore.InsertObject(stdClass);
            });
        }