예제 #1
0
 public Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "BusID", ObjectId },
         { "CreatedAt", CreatedAt.ToString("yyyy-MM-dd HH:mm:ss") },
         { "Name", BusName },
         { "TeacherID", TeacherID },
         { "ArriveHome", AHChecked.ToString().ToLower() },
         { "ComingSchool", CSChecked.ToString().ToLower() },
         { "LeavingSchool", LSChecked.ToString().ToLower() }
     });
 }
 public Dictionary <string, string> ToDictionary()
 {
     return(new Dictionary <string, string>
     {
         { "StuID", ObjectId },
         { "Name", StudentName },
         { "Sex", Sex },
         { "BusID", BusID },
         { "ClassID", ClassID },
         { "ComingChecked", CSChecked.ToString().ToLower() },
         { "LeavingChecked", LSChecked.ToString() },
         { "ParentLeavingChecked", AHChecked.ToString() },
     });
 }