EMIS.Entities.Context.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated from a template.
  4. //
  5. // Manual changes to this file may cause unexpected behavior in your application.
  6. // Manual changes to this file will be overwritten if the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. #pragma warning disable 1573
  10. namespace EMIS.Entities
  11. {
  12. using System;
  13. using System.Data.Common;
  14. using System.Data.Entity;
  15. using System.Data.Entity.Infrastructure;
  16. public partial class EMISNewContext : DbContext
  17. {
  18. static EMISNewContext()
  19. {
  20. Database.SetInitializer<EMISNewContext>(null);
  21. }
  22. public EMISNewContext() : base("name=EMISNewContext") {
  23. var objectContext = (this as IObjectContextAdapter).ObjectContext;
  24. objectContext.CommandTimeout = 12000;
  25. base.Configuration.ProxyCreationEnabled = false;
  26. }
  27. public EMISNewContext(string nameOrConnectionString) : base(nameOrConnectionString) {
  28. var objectContext = (this as IObjectContextAdapter).ObjectContext;
  29. objectContext.CommandTimeout = 12000;
  30. base.Configuration.ProxyCreationEnabled = false;
  31. }
  32. protected override void OnModelCreating(DbModelBuilder modelBuilder)
  33. {
  34. modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
  35. modelBuilder.Configurations.Add(new CF_Arrangements_Mapping());
  36. modelBuilder.Configurations.Add(new CF_Campus_Mapping());
  37. modelBuilder.Configurations.Add(new CF_CampusProfile_Mapping());
  38. modelBuilder.Configurations.Add(new CF_Classmajor_Mapping());
  39. modelBuilder.Configurations.Add(new CF_College_Mapping());
  40. modelBuilder.Configurations.Add(new CF_CollegeProfile_Mapping());
  41. modelBuilder.Configurations.Add(new CF_DataCenterCodeTranslate_Mapping());
  42. modelBuilder.Configurations.Add(new CF_Department_Mapping());
  43. modelBuilder.Configurations.Add(new CF_DepartmentProfile_Mapping());
  44. modelBuilder.Configurations.Add(new CF_Facultymajor_Mapping());
  45. modelBuilder.Configurations.Add(new CF_Grademajor_Mapping());
  46. modelBuilder.Configurations.Add(new CF_InSchoolSetting_Mapping());
  47. modelBuilder.Configurations.Add(new CF_Parameter_Mapping());
  48. modelBuilder.Configurations.Add(new CF_Recruitstudents_Mapping());
  49. modelBuilder.Configurations.Add(new CF_Schoolyear_Mapping());
  50. modelBuilder.Configurations.Add(new CF_SocialClassmajor_Mapping());
  51. modelBuilder.Configurations.Add(new CF_Specialty_Mapping());
  52. modelBuilder.Configurations.Add(new CF_Staff_Mapping());
  53. modelBuilder.Configurations.Add(new CF_StaffManageCampus_Mapping());
  54. modelBuilder.Configurations.Add(new CF_StaffManageCollege_Mapping());
  55. modelBuilder.Configurations.Add(new CF_StaffManageDepartment_Mapping());
  56. modelBuilder.Configurations.Add(new CF_StaffProfile_Mapping());
  57. modelBuilder.Configurations.Add(new CF_Student_Mapping());
  58. modelBuilder.Configurations.Add(new CF_StudentAccount_Mapping());
  59. modelBuilder.Configurations.Add(new CF_StudentContact_Mapping());
  60. modelBuilder.Configurations.Add(new CF_StudentProfile_Mapping());
  61. modelBuilder.Configurations.Add(new CF_StudentRole_Mapping());
  62. modelBuilder.Configurations.Add(new CF_University_Mapping());
  63. modelBuilder.Configurations.Add(new CF_UniversityProfile_Mapping());
  64. modelBuilder.Configurations.Add(new CF_WechatPayList_Mapping());
  65. modelBuilder.Configurations.Add(new CF_WechatSubscribe_Mapping());
  66. modelBuilder.Configurations.Add(new EM_CoursesTime_Mapping());
  67. modelBuilder.Configurations.Add(new EM_ExaminationMessage_Mapping());
  68. modelBuilder.Configurations.Add(new EM_TrainingClass_Mapping());
  69. modelBuilder.Configurations.Add(new ER_CertisfierDistribute_Mapping());
  70. modelBuilder.Configurations.Add(new ER_ExaminationScore_Mapping());
  71. modelBuilder.Configurations.Add(new ER_LevelSetting_Mapping());
  72. modelBuilder.Configurations.Add(new ER_LevelSettingSubject_Mapping());
  73. modelBuilder.Configurations.Add(new ER_ProjectScore_Mapping());
  74. modelBuilder.Configurations.Add(new ER_Resit_Mapping());
  75. modelBuilder.Configurations.Add(new EX_ExaminationBatch_Mapping());
  76. modelBuilder.Configurations.Add(new EX_ExaminationBatchProject_Mapping());
  77. modelBuilder.Configurations.Add(new EX_ExaminationBatchProjectControl_Mapping());
  78. modelBuilder.Configurations.Add(new EX_ExaminationBatchProjectPersonControl_Mapping());
  79. modelBuilder.Configurations.Add(new EX_ExaminationProject_Mapping());
  80. modelBuilder.Configurations.Add(new EX_ExaminationProjectCollegeControl_Mapping());
  81. modelBuilder.Configurations.Add(new EX_ExaminationProjectCountLimit_Mapping());
  82. modelBuilder.Configurations.Add(new EX_ExaminationProjectFee_Mapping());
  83. modelBuilder.Configurations.Add(new EX_ExaminationProjectFeeType_Mapping());
  84. modelBuilder.Configurations.Add(new EX_ExaminationProjectSubject_Mapping());
  85. modelBuilder.Configurations.Add(new EX_ExaminationRegistration_Mapping());
  86. modelBuilder.Configurations.Add(new EX_ExaminationRegistrationConfirm_Mapping());
  87. modelBuilder.Configurations.Add(new EX_ExaminationType_Mapping());
  88. modelBuilder.Configurations.Add(new EX_InvalidReceipt_Mapping());
  89. modelBuilder.Configurations.Add(new EX_Receipt_Mapping());
  90. modelBuilder.Configurations.Add(new Sys_Announcement_Mapping());
  91. modelBuilder.Configurations.Add(new Sys_AnnouncementType_Mapping());
  92. modelBuilder.Configurations.Add(new Sys_BatchModify_Mapping());
  93. modelBuilder.Configurations.Add(new Sys_BatchModifyEvents_Mapping());
  94. modelBuilder.Configurations.Add(new Sys_BatchModifyExpand_Mapping());
  95. modelBuilder.Configurations.Add(new Sys_ConfiguretermsExpand_Mapping());
  96. modelBuilder.Configurations.Add(new Sys_ConfiguretermsInfo_Mapping());
  97. modelBuilder.Configurations.Add(new Sys_ContextMenu_Mapping());
  98. modelBuilder.Configurations.Add(new Sys_ControlItem_Mapping());
  99. modelBuilder.Configurations.Add(new Sys_ControlItemDetail_Mapping());
  100. modelBuilder.Configurations.Add(new Sys_Dictionary_Mapping());
  101. modelBuilder.Configurations.Add(new Sys_DictionaryItem_Mapping());
  102. modelBuilder.Configurations.Add(new Sys_FunctionCode_Mapping());
  103. modelBuilder.Configurations.Add(new Sys_LoginHistory_Mapping());
  104. modelBuilder.Configurations.Add(new Sys_MailVerifyCode_Mapping());
  105. modelBuilder.Configurations.Add(new Sys_Menu_Mapping());
  106. modelBuilder.Configurations.Add(new Sys_Role_Mapping());
  107. modelBuilder.Configurations.Add(new Sys_RoleDataRange_Mapping());
  108. modelBuilder.Configurations.Add(new Sys_ScheduleJob_Mapping());
  109. modelBuilder.Configurations.Add(new Sys_ScheduleLog_Mapping());
  110. modelBuilder.Configurations.Add(new Sys_Scheduling_Mapping());
  111. modelBuilder.Configurations.Add(new Sys_SerialNumber_Mapping());
  112. modelBuilder.Configurations.Add(new Sys_ShareRecord_Mapping());
  113. modelBuilder.Configurations.Add(new Sys_User_Mapping());
  114. modelBuilder.Configurations.Add(new Sys_UserScore_Mapping());
  115. modelBuilder.Configurations.Add(new TestOperate_Mapping());
  116. }
  117. public DbSet<CF_Arrangements> CF_Arrangements { get; set; }
  118. public DbSet<CF_Campus> CF_Campus { get; set; }
  119. public DbSet<CF_CampusProfile> CF_CampusProfile { get; set; }
  120. public DbSet<CF_Classmajor> CF_Classmajor { get; set; }
  121. public DbSet<CF_College> CF_College { get; set; }
  122. public DbSet<CF_CollegeProfile> CF_CollegeProfile { get; set; }
  123. public DbSet<CF_DataCenterCodeTranslate> CF_DataCenterCodeTranslate { get; set; }
  124. public DbSet<CF_Department> CF_Department { get; set; }
  125. public DbSet<CF_DepartmentProfile> CF_DepartmentProfile { get; set; }
  126. public DbSet<CF_Facultymajor> CF_Facultymajor { get; set; }
  127. public DbSet<CF_Grademajor> CF_Grademajor { get; set; }
  128. public DbSet<CF_InSchoolSetting> CF_InSchoolSetting { get; set; }
  129. public DbSet<CF_Parameter> CF_Parameter { get; set; }
  130. public DbSet<CF_Recruitstudents> CF_Recruitstudents { get; set; }
  131. public DbSet<CF_Schoolyear> CF_Schoolyear { get; set; }
  132. public DbSet<CF_SocialClassmajor> CF_SocialClassmajor { get; set; }
  133. public DbSet<CF_Specialty> CF_Specialty { get; set; }
  134. public DbSet<CF_Staff> CF_Staff { get; set; }
  135. public DbSet<CF_StaffManageCampus> CF_StaffManageCampus { get; set; }
  136. public DbSet<CF_StaffManageCollege> CF_StaffManageCollege { get; set; }
  137. public DbSet<CF_StaffManageDepartment> CF_StaffManageDepartment { get; set; }
  138. public DbSet<CF_StaffProfile> CF_StaffProfile { get; set; }
  139. public DbSet<CF_Student> CF_Student { get; set; }
  140. public DbSet<CF_StudentAccount> CF_StudentAccount { get; set; }
  141. public DbSet<CF_StudentContact> CF_StudentContact { get; set; }
  142. public DbSet<CF_StudentProfile> CF_StudentProfile { get; set; }
  143. public DbSet<CF_StudentRole> CF_StudentRole { get; set; }
  144. public DbSet<CF_University> CF_University { get; set; }
  145. public DbSet<CF_UniversityProfile> CF_UniversityProfile { get; set; }
  146. public DbSet<CF_WechatPayList> CF_WechatPayList { get; set; }
  147. public DbSet<CF_WechatSubscribe> CF_WechatSubscribe { get; set; }
  148. public DbSet<EM_CoursesTime> EM_CoursesTime { get; set; }
  149. public DbSet<EM_ExaminationMessage> EM_ExaminationMessage { get; set; }
  150. public DbSet<EM_TrainingClass> EM_TrainingClass { get; set; }
  151. public DbSet<ER_CertisfierDistribute> ER_CertisfierDistribute { get; set; }
  152. public DbSet<ER_ExaminationScore> ER_ExaminationScore { get; set; }
  153. public DbSet<ER_LevelSetting> ER_LevelSetting { get; set; }
  154. public DbSet<ER_LevelSettingSubject> ER_LevelSettingSubject { get; set; }
  155. public DbSet<ER_ProjectScore> ER_ProjectScore { get; set; }
  156. public DbSet<ER_Resit> ER_Resit { get; set; }
  157. public DbSet<EX_ExaminationBatch> EX_ExaminationBatch { get; set; }
  158. public DbSet<EX_ExaminationBatchProject> EX_ExaminationBatchProject { get; set; }
  159. public DbSet<EX_ExaminationBatchProjectControl> EX_ExaminationBatchProjectControl { get; set; }
  160. public DbSet<EX_ExaminationBatchProjectPersonControl> EX_ExaminationBatchProjectPersonControl { get; set; }
  161. public DbSet<EX_ExaminationProject> EX_ExaminationProject { get; set; }
  162. public DbSet<EX_ExaminationProjectCollegeControl> EX_ExaminationProjectCollegeControl { get; set; }
  163. public DbSet<EX_ExaminationProjectCountLimit> EX_ExaminationProjectCountLimit { get; set; }
  164. public DbSet<EX_ExaminationProjectFee> EX_ExaminationProjectFee { get; set; }
  165. public DbSet<EX_ExaminationProjectFeeType> EX_ExaminationProjectFeeType { get; set; }
  166. public DbSet<EX_ExaminationProjectSubject> EX_ExaminationProjectSubject { get; set; }
  167. public DbSet<EX_ExaminationRegistration> EX_ExaminationRegistration { get; set; }
  168. public DbSet<EX_ExaminationRegistrationConfirm> EX_ExaminationRegistrationConfirm { get; set; }
  169. public DbSet<EX_ExaminationType> EX_ExaminationType { get; set; }
  170. public DbSet<EX_InvalidReceipt> EX_InvalidReceipt { get; set; }
  171. public DbSet<EX_Receipt> EX_Receipt { get; set; }
  172. public DbSet<Sys_Announcement> Sys_Announcement { get; set; }
  173. public DbSet<Sys_AnnouncementType> Sys_AnnouncementType { get; set; }
  174. public DbSet<Sys_BatchModify> Sys_BatchModify { get; set; }
  175. public DbSet<Sys_BatchModifyEvents> Sys_BatchModifyEvents { get; set; }
  176. public DbSet<Sys_BatchModifyExpand> Sys_BatchModifyExpand { get; set; }
  177. public DbSet<Sys_ConfiguretermsExpand> Sys_ConfiguretermsExpand { get; set; }
  178. public DbSet<Sys_ConfiguretermsInfo> Sys_ConfiguretermsInfo { get; set; }
  179. public DbSet<Sys_ContextMenu> Sys_ContextMenu { get; set; }
  180. public DbSet<Sys_ControlItem> Sys_ControlItem { get; set; }
  181. public DbSet<Sys_ControlItemDetail> Sys_ControlItemDetail { get; set; }
  182. public DbSet<Sys_Dictionary> Sys_Dictionary { get; set; }
  183. public DbSet<Sys_DictionaryItem> Sys_DictionaryItem { get; set; }
  184. public DbSet<Sys_FunctionCode> Sys_FunctionCode { get; set; }
  185. public DbSet<Sys_LoginHistory> Sys_LoginHistory { get; set; }
  186. public DbSet<Sys_MailVerifyCode> Sys_MailVerifyCode { get; set; }
  187. public DbSet<Sys_Menu> Sys_Menu { get; set; }
  188. public DbSet<Sys_Role> Sys_Role { get; set; }
  189. public DbSet<Sys_RoleDataRange> Sys_RoleDataRange { get; set; }
  190. public DbSet<Sys_ScheduleJob> Sys_ScheduleJob { get; set; }
  191. public DbSet<Sys_ScheduleLog> Sys_ScheduleLog { get; set; }
  192. public DbSet<Sys_Scheduling> Sys_Scheduling { get; set; }
  193. public DbSet<Sys_SerialNumber> Sys_SerialNumber { get; set; }
  194. public DbSet<Sys_ShareRecord> Sys_ShareRecord { get; set; }
  195. public DbSet<Sys_User> Sys_User { get; set; }
  196. public DbSet<Sys_UserScore> Sys_UserScore { get; set; }
  197. public DbSet<TestOperate> TestOperate { get; set; }
  198. }
  199. }