//------------------------------------------------------------------------------ // // This code was generated from a template. // // Manual changes to this file may cause unexpected behavior in your application. // Manual changes to this file will be overwritten if the code is regenerated. // //------------------------------------------------------------------------------ using System.Collections.Generic; namespace EMIS.Entities { public class TableKeyDictionary { private static Dictionary items; public static Dictionary Items { get { return items; } } static TableKeyDictionary() { items = new Dictionary(); items.Add("CF_Arrangements", "ArrangementsID"); items.Add("CF_Campus", "CampusID"); items.Add("CF_CampusProfile", "CampusID"); items.Add("CF_Classmajor", "ClassmajorID"); items.Add("CF_College", "CollegeID"); items.Add("CF_CollegeProfile", "CollegeID"); items.Add("CF_DataCenterCodeTranslate", "CodeType"); items.Add("CF_Department", "DepartmentID"); items.Add("CF_DepartmentProfile", "DepartmentID"); items.Add("CF_Facultymajor", "FacultymajorID"); items.Add("CF_Grademajor", "GrademajorID"); items.Add("CF_InSchoolSetting", "InSchoolSettingID"); items.Add("CF_Parameter", "ParameterID"); items.Add("CF_Recruitstudents", "UserID"); items.Add("CF_Schoolyear", "SchoolyearID"); items.Add("CF_SocialClassmajor", "ClassmajorID"); items.Add("CF_Specialty", "SpecialtyID"); items.Add("CF_Staff", "UserID"); items.Add("CF_StaffManageCampus", "StaffManageCampusID"); items.Add("CF_StaffManageCollege", "StaffManageCollegeID"); items.Add("CF_StaffManageDepartment", "StaffManageDepartmentID"); items.Add("CF_StaffProfile", "UserID"); items.Add("CF_Student", "UserID"); items.Add("CF_StudentAccount", "UserID"); items.Add("CF_StudentContact", "UserID"); items.Add("CF_StudentProfile", "UserID"); items.Add("CF_StudentRole", "RoleID"); items.Add("CF_University", "UniversityID"); items.Add("CF_UniversityProfile", "UniversityID"); items.Add("CF_WechatPayList", "WechatPayListID"); items.Add("CF_WechatSubscribe", "WechatSubscribeID"); items.Add("EM_CoursesTime", "CoursesTimeID"); items.Add("EM_ExaminationMessage", "ExaminationRegistrationID"); items.Add("EM_TrainingClass", "TrainingClassID"); items.Add("ER_CertisfierDistribute", "CertisfierDistributeID"); items.Add("ER_ExaminationScore", "ExaminationScoreID"); items.Add("ER_LevelSetting", "LevelSettingID"); items.Add("ER_LevelSettingSubject", "LevelSettingSubjectID"); items.Add("ER_ProjectScore", "ProjectScoreID"); items.Add("ER_Resit", "ResitID"); items.Add("EX_ExaminationBatch", "ExaminationBatchID"); items.Add("EX_ExaminationBatchProject", "ExaminationBatchProjectID"); items.Add("EX_ExaminationBatchProjectControl", "ExaminationBatchProjectControlID"); items.Add("EX_ExaminationBatchProjectPersonControl", "ExaminationBatchProjectPersonControlID"); items.Add("EX_ExaminationProject", "ExaminationProjectID"); items.Add("EX_ExaminationProjectCollegeControl", "ExaminationProjectCollegeControlID"); items.Add("EX_ExaminationProjectCountLimit", "ExaminationSubjectCountLimitID"); items.Add("EX_ExaminationProjectFee", "ExaminationProjectFeeID"); items.Add("EX_ExaminationProjectFeeType", "ExaminationProjectFeeTypeID"); items.Add("EX_ExaminationProjectSubject", "ExaminationProjectSubjectID"); items.Add("EX_ExaminationRegistration", "ExaminationRegistrationID"); items.Add("EX_ExaminationRegistrationConfirm", "ExaminationRegistrationConfirmID"); items.Add("EX_ExaminationType", "ExaminationTypeID"); items.Add("EX_InvalidReceipt", "InvalidReceiptID"); items.Add("EX_Receipt", "ReceiptID"); items.Add("Sys_Announcement", "AnnouncementID"); items.Add("Sys_AnnouncementType", "AnnouncementTypeID"); items.Add("Sys_BatchModify", "BatchModifyID"); items.Add("Sys_BatchModifyEvents", "BatchModifyEventsID"); items.Add("Sys_BatchModifyExpand", "ID"); items.Add("Sys_ConfiguretermsExpand", "ID"); items.Add("Sys_ConfiguretermsInfo", "ID"); items.Add("Sys_ContextMenu", "ContextMnuNo"); items.Add("Sys_ControlItem", "ControlItemCode"); items.Add("Sys_ControlItemDetail", "ControlItemDetailID"); items.Add("Sys_Dictionary", "DictionaryCode"); items.Add("Sys_DictionaryItem", "DictionaryItemID"); items.Add("Sys_FunctionCode", "FunctionCode"); items.Add("Sys_LoginHistory", "LoginHistoryID"); items.Add("Sys_MailVerifyCode", "UserID"); items.Add("Sys_Menu", "MenuNo"); items.Add("Sys_Role", "RoleID"); items.Add("Sys_RoleDataRange", "RoleDataRangeID"); items.Add("Sys_ScheduleJob", "jobid"); items.Add("Sys_ScheduleLog", "scheduleLogID"); items.Add("Sys_Scheduling", "scid"); items.Add("Sys_SerialNumber", "ID"); items.Add("Sys_ShareRecord", "ShareRecordID"); items.Add("Sys_User", "UserID"); items.Add("Sys_UserScore", "UserID"); items.Add("TestOperate", "OperateID"); } public static string GetKeyName(TEntity entity) { string tableName = entity.GetType().Name; return items[tableName]; } public static string GetKeyName() { string tableName = typeof(TEntity).Name; return items[tableName]; } } }