//------------------------------------------------------------------------------ // // 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. // //------------------------------------------------------------------------------ #pragma warning disable 1573 namespace EMIS.Entities { using System; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Infrastructure; public partial class EMISNewContext : DbContext { static EMISNewContext() { Database.SetInitializer(null); } public EMISNewContext() : base("name=EMISNewContext") { var objectContext = (this as IObjectContextAdapter).ObjectContext; objectContext.CommandTimeout = 12000; base.Configuration.ProxyCreationEnabled = false; } public EMISNewContext(string nameOrConnectionString) : base(nameOrConnectionString) { var objectContext = (this as IObjectContextAdapter).ObjectContext; objectContext.CommandTimeout = 12000; base.Configuration.ProxyCreationEnabled = false; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove(); modelBuilder.Configurations.Add(new CF_Arrangements_Mapping()); modelBuilder.Configurations.Add(new CF_Campus_Mapping()); modelBuilder.Configurations.Add(new CF_CampusProfile_Mapping()); modelBuilder.Configurations.Add(new CF_Classmajor_Mapping()); modelBuilder.Configurations.Add(new CF_College_Mapping()); modelBuilder.Configurations.Add(new CF_CollegeProfile_Mapping()); modelBuilder.Configurations.Add(new CF_DataCenterCodeTranslate_Mapping()); modelBuilder.Configurations.Add(new CF_Department_Mapping()); modelBuilder.Configurations.Add(new CF_DepartmentProfile_Mapping()); modelBuilder.Configurations.Add(new CF_Facultymajor_Mapping()); modelBuilder.Configurations.Add(new CF_Grademajor_Mapping()); modelBuilder.Configurations.Add(new CF_InSchoolSetting_Mapping()); modelBuilder.Configurations.Add(new CF_Parameter_Mapping()); modelBuilder.Configurations.Add(new CF_Recruitstudents_Mapping()); modelBuilder.Configurations.Add(new CF_Schoolyear_Mapping()); modelBuilder.Configurations.Add(new CF_SocialClassmajor_Mapping()); modelBuilder.Configurations.Add(new CF_Specialty_Mapping()); modelBuilder.Configurations.Add(new CF_Staff_Mapping()); modelBuilder.Configurations.Add(new CF_StaffManageCampus_Mapping()); modelBuilder.Configurations.Add(new CF_StaffManageCollege_Mapping()); modelBuilder.Configurations.Add(new CF_StaffManageDepartment_Mapping()); modelBuilder.Configurations.Add(new CF_StaffProfile_Mapping()); modelBuilder.Configurations.Add(new CF_Student_Mapping()); modelBuilder.Configurations.Add(new CF_StudentAccount_Mapping()); modelBuilder.Configurations.Add(new CF_StudentContact_Mapping()); modelBuilder.Configurations.Add(new CF_StudentProfile_Mapping()); modelBuilder.Configurations.Add(new CF_StudentRole_Mapping()); modelBuilder.Configurations.Add(new CF_University_Mapping()); modelBuilder.Configurations.Add(new CF_UniversityProfile_Mapping()); modelBuilder.Configurations.Add(new CF_WechatPayList_Mapping()); modelBuilder.Configurations.Add(new CF_WechatSubscribe_Mapping()); modelBuilder.Configurations.Add(new EM_CoursesTime_Mapping()); modelBuilder.Configurations.Add(new EM_ExaminationMessage_Mapping()); modelBuilder.Configurations.Add(new EM_TrainingClass_Mapping()); modelBuilder.Configurations.Add(new ER_CertisfierDistribute_Mapping()); modelBuilder.Configurations.Add(new ER_ExaminationScore_Mapping()); modelBuilder.Configurations.Add(new ER_LevelSetting_Mapping()); modelBuilder.Configurations.Add(new ER_LevelSettingSubject_Mapping()); modelBuilder.Configurations.Add(new ER_ProjectScore_Mapping()); modelBuilder.Configurations.Add(new ER_Resit_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationBatch_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationBatchProject_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationBatchProjectControl_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationBatchProjectPersonControl_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProject_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProjectCollegeControl_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProjectCountLimit_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProjectFee_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProjectFeeType_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationProjectSubject_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationRegistration_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationRegistrationConfirm_Mapping()); modelBuilder.Configurations.Add(new EX_ExaminationType_Mapping()); modelBuilder.Configurations.Add(new EX_InvalidReceipt_Mapping()); modelBuilder.Configurations.Add(new EX_Receipt_Mapping()); modelBuilder.Configurations.Add(new Sys_Announcement_Mapping()); modelBuilder.Configurations.Add(new Sys_AnnouncementType_Mapping()); modelBuilder.Configurations.Add(new Sys_BatchModify_Mapping()); modelBuilder.Configurations.Add(new Sys_BatchModifyEvents_Mapping()); modelBuilder.Configurations.Add(new Sys_BatchModifyExpand_Mapping()); modelBuilder.Configurations.Add(new Sys_ConfiguretermsExpand_Mapping()); modelBuilder.Configurations.Add(new Sys_ConfiguretermsInfo_Mapping()); modelBuilder.Configurations.Add(new Sys_ContextMenu_Mapping()); modelBuilder.Configurations.Add(new Sys_ControlItem_Mapping()); modelBuilder.Configurations.Add(new Sys_ControlItemDetail_Mapping()); modelBuilder.Configurations.Add(new Sys_Dictionary_Mapping()); modelBuilder.Configurations.Add(new Sys_DictionaryItem_Mapping()); modelBuilder.Configurations.Add(new Sys_FunctionCode_Mapping()); modelBuilder.Configurations.Add(new Sys_LoginHistory_Mapping()); modelBuilder.Configurations.Add(new Sys_MailVerifyCode_Mapping()); modelBuilder.Configurations.Add(new Sys_Menu_Mapping()); modelBuilder.Configurations.Add(new Sys_Role_Mapping()); modelBuilder.Configurations.Add(new Sys_RoleDataRange_Mapping()); modelBuilder.Configurations.Add(new Sys_ScheduleJob_Mapping()); modelBuilder.Configurations.Add(new Sys_ScheduleLog_Mapping()); modelBuilder.Configurations.Add(new Sys_Scheduling_Mapping()); modelBuilder.Configurations.Add(new Sys_SerialNumber_Mapping()); modelBuilder.Configurations.Add(new Sys_ShareRecord_Mapping()); modelBuilder.Configurations.Add(new Sys_User_Mapping()); modelBuilder.Configurations.Add(new Sys_UserScore_Mapping()); modelBuilder.Configurations.Add(new TestOperate_Mapping()); } public DbSet CF_Arrangements { get; set; } public DbSet CF_Campus { get; set; } public DbSet CF_CampusProfile { get; set; } public DbSet CF_Classmajor { get; set; } public DbSet CF_College { get; set; } public DbSet CF_CollegeProfile { get; set; } public DbSet CF_DataCenterCodeTranslate { get; set; } public DbSet CF_Department { get; set; } public DbSet CF_DepartmentProfile { get; set; } public DbSet CF_Facultymajor { get; set; } public DbSet CF_Grademajor { get; set; } public DbSet CF_InSchoolSetting { get; set; } public DbSet CF_Parameter { get; set; } public DbSet CF_Recruitstudents { get; set; } public DbSet CF_Schoolyear { get; set; } public DbSet CF_SocialClassmajor { get; set; } public DbSet CF_Specialty { get; set; } public DbSet CF_Staff { get; set; } public DbSet CF_StaffManageCampus { get; set; } public DbSet CF_StaffManageCollege { get; set; } public DbSet CF_StaffManageDepartment { get; set; } public DbSet CF_StaffProfile { get; set; } public DbSet CF_Student { get; set; } public DbSet CF_StudentAccount { get; set; } public DbSet CF_StudentContact { get; set; } public DbSet CF_StudentProfile { get; set; } public DbSet CF_StudentRole { get; set; } public DbSet CF_University { get; set; } public DbSet CF_UniversityProfile { get; set; } public DbSet CF_WechatPayList { get; set; } public DbSet CF_WechatSubscribe { get; set; } public DbSet EM_CoursesTime { get; set; } public DbSet EM_ExaminationMessage { get; set; } public DbSet EM_TrainingClass { get; set; } public DbSet ER_CertisfierDistribute { get; set; } public DbSet ER_ExaminationScore { get; set; } public DbSet ER_LevelSetting { get; set; } public DbSet ER_LevelSettingSubject { get; set; } public DbSet ER_ProjectScore { get; set; } public DbSet ER_Resit { get; set; } public DbSet EX_ExaminationBatch { get; set; } public DbSet EX_ExaminationBatchProject { get; set; } public DbSet EX_ExaminationBatchProjectControl { get; set; } public DbSet EX_ExaminationBatchProjectPersonControl { get; set; } public DbSet EX_ExaminationProject { get; set; } public DbSet EX_ExaminationProjectCollegeControl { get; set; } public DbSet EX_ExaminationProjectCountLimit { get; set; } public DbSet EX_ExaminationProjectFee { get; set; } public DbSet EX_ExaminationProjectFeeType { get; set; } public DbSet EX_ExaminationProjectSubject { get; set; } public DbSet EX_ExaminationRegistration { get; set; } public DbSet EX_ExaminationRegistrationConfirm { get; set; } public DbSet EX_ExaminationType { get; set; } public DbSet EX_InvalidReceipt { get; set; } public DbSet EX_Receipt { get; set; } public DbSet Sys_Announcement { get; set; } public DbSet Sys_AnnouncementType { get; set; } public DbSet Sys_BatchModify { get; set; } public DbSet Sys_BatchModifyEvents { get; set; } public DbSet Sys_BatchModifyExpand { get; set; } public DbSet Sys_ConfiguretermsExpand { get; set; } public DbSet Sys_ConfiguretermsInfo { get; set; } public DbSet Sys_ContextMenu { get; set; } public DbSet Sys_ControlItem { get; set; } public DbSet Sys_ControlItemDetail { get; set; } public DbSet Sys_Dictionary { get; set; } public DbSet Sys_DictionaryItem { get; set; } public DbSet Sys_FunctionCode { get; set; } public DbSet Sys_LoginHistory { get; set; } public DbSet Sys_MailVerifyCode { get; set; } public DbSet Sys_Menu { get; set; } public DbSet Sys_Role { get; set; } public DbSet Sys_RoleDataRange { get; set; } public DbSet Sys_ScheduleJob { get; set; } public DbSet Sys_ScheduleLog { get; set; } public DbSet Sys_Scheduling { get; set; } public DbSet Sys_SerialNumber { get; set; } public DbSet Sys_ShareRecord { get; set; } public DbSet Sys_User { get; set; } public DbSet Sys_UserScore { get; set; } public DbSet TestOperate { get; set; } } }