//------------------------------------------------------------------------------
//
// 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 EMISOnline.Entities
{
public class TableKeyDictionary
{
private static Dictionary items;
public static Dictionary Items
{
get { return items; }
}
static TableKeyDictionary()
{
items = new Dictionary();
items.Add("CF_Campus", "CampusID");
items.Add("CF_Classmajor", "ClassmajorID");
items.Add("CF_College", "CollegeID");
items.Add("CF_Department", "DepartmentID");
items.Add("CF_Facultymajor", "FacultymajorID");
items.Add("CF_Grademajor", "GrademajorID");
items.Add("CF_Recruitstudents", "UserID");
items.Add("CF_Schoolyear", "SchoolyearID");
items.Add("CF_Staff", "UserID");
items.Add("CF_StaffProfile", "UserID");
items.Add("CF_Student", "UserID");
items.Add("CF_StudentContact", "UserID");
items.Add("CF_StudentContrast", "StudentContrastID");
items.Add("CF_StudentRole", "RoleID");
items.Add("CF_University", "UniversityID");
items.Add("Coursework", "ID");
items.Add("CourseworkAnswer", "ID");
items.Add("CourseworkResult", "ID");
items.Add("EM_CourseChapter", "CourseChapterID");
items.Add("EM_CourseChapter_Video", "CourseVideoID");
items.Add("EM_Coursematerial", "CoursematerialID");
items.Add("EM_CoursematerialExtend", "CoursematerialID");
items.Add("EM_CourseStudyStatus", "CourseStudyStatusID");
items.Add("EM_CourseVideo", "CourseVideoID");
items.Add("EM_EducationMission", "EducationMissionID");
items.Add("EM_EducationMissionClass", "EducationMissionClassID");
items.Add("EM_EducationMissionClass_CF_Classmajor", "EducationMissionClassID");
items.Add("EM_EducationMissionClassTeachingSetting", "EducationMissionClassID");
items.Add("EM_EducationSchedulingClass", "EducationSchedulingClassID");
items.Add("EM_EducationSchedulingClass_CF_Student", "EducationSchedulingClassID");
items.Add("EM_ExecutableFreeSelectionCouse", "ExecutableFreeSelectionCouseID");
items.Add("EM_ExecutableFreeSelectionCouseTeachingSetting", "ExecutableFreeSelectionCouseID");
items.Add("EM_ExecutableOptionalCourse", "ExecutableOptionalCourseID");
items.Add("EM_ExecutableOptionalCourseTeachingSetting", "ExecutableOptionalCourseID");
items.Add("EM_ExecutablePlan", "ExecutablePlanID");
items.Add("EM_ExecutablePlanTeachingSetting", "ExecutablePlanID");
items.Add("EM_FreeSelectionCouse", "FreeSelectionCouseID");
items.Add("EM_FTPVideo", "FTPVideoID");
items.Add("EM_MissionClassTeacher", "MissionClassTeacherID");
items.Add("EM_OptionalCoursePlan", "OptionalCourseID");
items.Add("EM_SpecialtyCourse", "SpecialtyCourseID");
items.Add("EM_SpecialtyCourseTeachingSetting", "SpecialtyCourseID");
items.Add("ER_ScoreRule", "ScoreRuleID");
items.Add("ER_TeacherScore", "TeacherScoreID");
items.Add("Exam_Log", "Id");
items.Add("ExamineeAnswer", "ID");
items.Add("ExamPaper", "ID");
items.Add("ExamResult", "ID");
items.Add("ExamResult_backup_20120913", "ID");
items.Add("ExamSetting_Examiner", "ID");
items.Add("ExamWarning", "ID");
items.Add("MSreplication_objects", "object_name");
items.Add("MSreplication_subscriptions", "publisher");
items.Add("MSsavedforeignkeycolumns", "program_name");
items.Add("MSsavedforeignkeyextendedproperties", "program_name");
items.Add("MSsavedforeignkeys", "program_name");
items.Add("MSsnapshotdeliveryprogress", "session_token");
items.Add("MSsubscription_agents", "id");
items.Add("Sys_Dictionary", "DictionaryCode");
items.Add("Sys_DictionaryItem", "DictionaryItemID");
items.Add("Sys_FunctionCode", "FunctionCode");
items.Add("Sys_LoginCount", "UserID");
items.Add("Sys_MailVerifyCode", "UserID");
items.Add("Sys_Menu", "MenuNo");
items.Add("Sys_Role", "RoleID");
items.Add("Sys_User", "UserID");
items.Add("Sys_User_Sys_Role", "UserID");
items.Add("test_base_param", "base_param_id");
items.Add("test_base_param_type", "base_param_parent_id");
items.Add("test_base_question_type", "base_question_type_id");
items.Add("test_comm_param_set", "comm_param_set_id");
items.Add("test_comm_set", "comm_set_id");
items.Add("test_exchange", "id");
items.Add("test_keyword", "test_keyword_id");
items.Add("test_onlinetest", "onlinetest_id");
items.Add("test_onlinetest_man", "ID");
items.Add("test_onlinetest_manshow", "ID");
items.Add("test_paper", "test_paper_id");
items.Add("test_paper_guide", "test_paper_guide_id");
items.Add("test_paper_question_set", "test_paper_question_set_id");
items.Add("test_paper_question_set_fortest", "test_paper_question_set_id");
items.Add("test_question", "test_question_Id");
items.Add("test_question_administrator", "test_question_administrator_id");
items.Add("test_question_file", "file_id");
items.Add("test_question_keyword", "test_question_keyword_id");
items.Add("test_question_libary", "test_question_libary_id");
items.Add("test_question_provid_answer", "provid_answer_id");
items.Add("v_question", "test_question_Id");
items.Add("V_StudentEducationMissionClass", "EducationMissionClassID");
items.Add("v_test_question", "test_question_Id");
items.Add("VTestQestion", "test_question_Id");
}
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];
}
}
}