123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
-
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 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.
- // </auto-generated>
- //------------------------------------------------------------------------------
- using System.Collections.Generic;
- namespace EMIS.Entities
- {
- public class TableKeyDictionary
- {
- private static Dictionary<string, string> items;
- public static Dictionary<string, string> Items
- {
- get { return items; }
- }
- static TableKeyDictionary()
- {
- items = new Dictionary<string, string>();
- 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>(TEntity entity)
- {
- string tableName = entity.GetType().Name;
- return items[tableName];
- }
- public static string GetKeyName<TEntity>()
- {
- string tableName = typeof(TEntity).Name;
- return items[tableName];
- }
- }
- }
|