TableKey1.cs 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. 
  2. //------------------------------------------------------------------------------
  3. // <auto-generated>
  4. // This code was generated from a template.
  5. //
  6. // Manual changes to this file may cause unexpected behavior in your application.
  7. // Manual changes to this file will be overwritten if the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. using System.Collections.Generic;
  11. namespace EMIS.Entities
  12. {
  13. public class TableKeyDictionary
  14. {
  15. private static Dictionary<string, string> items;
  16. public static Dictionary<string, string> Items
  17. {
  18. get { return items; }
  19. }
  20. static TableKeyDictionary()
  21. {
  22. items = new Dictionary<string, string>();
  23. items.Add("CF_Arrangements", "ArrangementsID");
  24. items.Add("CF_Campus", "CampusID");
  25. items.Add("CF_CampusProfile", "CampusID");
  26. items.Add("CF_Classmajor", "ClassmajorID");
  27. items.Add("CF_College", "CollegeID");
  28. items.Add("CF_CollegeProfile", "CollegeID");
  29. items.Add("CF_DataCenterCodeTranslate", "CodeType");
  30. items.Add("CF_Department", "DepartmentID");
  31. items.Add("CF_DepartmentProfile", "DepartmentID");
  32. items.Add("CF_Facultymajor", "FacultymajorID");
  33. items.Add("CF_Grademajor", "GrademajorID");
  34. items.Add("CF_InSchoolSetting", "InSchoolSettingID");
  35. items.Add("CF_Parameter", "ParameterID");
  36. items.Add("CF_Recruitstudents", "UserID");
  37. items.Add("CF_Schoolyear", "SchoolyearID");
  38. items.Add("CF_SocialClassmajor", "ClassmajorID");
  39. items.Add("CF_Specialty", "SpecialtyID");
  40. items.Add("CF_Staff", "UserID");
  41. items.Add("CF_StaffManageCampus", "StaffManageCampusID");
  42. items.Add("CF_StaffManageCollege", "StaffManageCollegeID");
  43. items.Add("CF_StaffManageDepartment", "StaffManageDepartmentID");
  44. items.Add("CF_StaffProfile", "UserID");
  45. items.Add("CF_Student", "UserID");
  46. items.Add("CF_StudentAccount", "UserID");
  47. items.Add("CF_StudentContact", "UserID");
  48. items.Add("CF_StudentProfile", "UserID");
  49. items.Add("CF_StudentRole", "RoleID");
  50. items.Add("CF_University", "UniversityID");
  51. items.Add("CF_UniversityProfile", "UniversityID");
  52. items.Add("CF_WechatPayList", "WechatPayListID");
  53. items.Add("CF_WechatSubscribe", "WechatSubscribeID");
  54. items.Add("EM_CoursesTime", "CoursesTimeID");
  55. items.Add("EM_ExaminationMessage", "ExaminationRegistrationID");
  56. items.Add("EM_TrainingClass", "TrainingClassID");
  57. items.Add("ER_CertisfierDistribute", "CertisfierDistributeID");
  58. items.Add("ER_ExaminationScore", "ExaminationScoreID");
  59. items.Add("ER_LevelSetting", "LevelSettingID");
  60. items.Add("ER_LevelSettingSubject", "LevelSettingSubjectID");
  61. items.Add("ER_ProjectScore", "ProjectScoreID");
  62. items.Add("ER_Resit", "ResitID");
  63. items.Add("EX_ExaminationBatch", "ExaminationBatchID");
  64. items.Add("EX_ExaminationBatchProject", "ExaminationBatchProjectID");
  65. items.Add("EX_ExaminationBatchProjectControl", "ExaminationBatchProjectControlID");
  66. items.Add("EX_ExaminationBatchProjectPersonControl", "ExaminationBatchProjectPersonControlID");
  67. items.Add("EX_ExaminationProject", "ExaminationProjectID");
  68. items.Add("EX_ExaminationProjectCollegeControl", "ExaminationProjectCollegeControlID");
  69. items.Add("EX_ExaminationProjectCountLimit", "ExaminationSubjectCountLimitID");
  70. items.Add("EX_ExaminationProjectFee", "ExaminationProjectFeeID");
  71. items.Add("EX_ExaminationProjectFeeType", "ExaminationProjectFeeTypeID");
  72. items.Add("EX_ExaminationProjectSubject", "ExaminationProjectSubjectID");
  73. items.Add("EX_ExaminationRegistration", "ExaminationRegistrationID");
  74. items.Add("EX_ExaminationRegistrationConfirm", "ExaminationRegistrationConfirmID");
  75. items.Add("EX_ExaminationType", "ExaminationTypeID");
  76. items.Add("EX_InvalidReceipt", "InvalidReceiptID");
  77. items.Add("EX_Receipt", "ReceiptID");
  78. items.Add("Sys_Announcement", "AnnouncementID");
  79. items.Add("Sys_AnnouncementType", "AnnouncementTypeID");
  80. items.Add("Sys_BatchModify", "BatchModifyID");
  81. items.Add("Sys_BatchModifyEvents", "BatchModifyEventsID");
  82. items.Add("Sys_BatchModifyExpand", "ID");
  83. items.Add("Sys_ConfiguretermsExpand", "ID");
  84. items.Add("Sys_ConfiguretermsInfo", "ID");
  85. items.Add("Sys_ContextMenu", "ContextMnuNo");
  86. items.Add("Sys_ControlItem", "ControlItemCode");
  87. items.Add("Sys_ControlItemDetail", "ControlItemDetailID");
  88. items.Add("Sys_Dictionary", "DictionaryCode");
  89. items.Add("Sys_DictionaryItem", "DictionaryItemID");
  90. items.Add("Sys_FunctionCode", "FunctionCode");
  91. items.Add("Sys_LoginHistory", "LoginHistoryID");
  92. items.Add("Sys_MailVerifyCode", "UserID");
  93. items.Add("Sys_Menu", "MenuNo");
  94. items.Add("Sys_Role", "RoleID");
  95. items.Add("Sys_RoleDataRange", "RoleDataRangeID");
  96. items.Add("Sys_ScheduleJob", "jobid");
  97. items.Add("Sys_ScheduleLog", "scheduleLogID");
  98. items.Add("Sys_Scheduling", "scid");
  99. items.Add("Sys_SerialNumber", "ID");
  100. items.Add("Sys_ShareRecord", "ShareRecordID");
  101. items.Add("Sys_User", "UserID");
  102. items.Add("Sys_UserScore", "UserID");
  103. items.Add("TestOperate", "OperateID");
  104. }
  105. public static string GetKeyName<TEntity>(TEntity entity)
  106. {
  107. string tableName = entity.GetType().Name;
  108. return items[tableName];
  109. }
  110. public static string GetKeyName<TEntity>()
  111. {
  112. string tableName = typeof(TEntity).Name;
  113. return items[tableName];
  114. }
  115. }
  116. }