EMISOnline.Entities.Context.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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 EMISOnline.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 EMISOnlineContextContainer : DbContext
  17. {
  18. static EMISOnlineContextContainer()
  19. {
  20. Database.SetInitializer<EMISOnlineContextContainer>(null);
  21. }
  22. public EMISOnlineContextContainer() : base("name=EMISOnlineContextContainer") {
  23. var objectContext = (this as IObjectContextAdapter).ObjectContext;
  24. objectContext.CommandTimeout = 12000;
  25. base.Configuration.ProxyCreationEnabled = false;
  26. }
  27. public EMISOnlineContextContainer(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_Campus_Mapping());
  36. modelBuilder.Configurations.Add(new CF_Classmajor_Mapping());
  37. modelBuilder.Configurations.Add(new CF_College_Mapping());
  38. modelBuilder.Configurations.Add(new CF_Department_Mapping());
  39. modelBuilder.Configurations.Add(new CF_Facultymajor_Mapping());
  40. modelBuilder.Configurations.Add(new CF_Grademajor_Mapping());
  41. modelBuilder.Configurations.Add(new CF_Recruitstudents_Mapping());
  42. modelBuilder.Configurations.Add(new CF_Schoolyear_Mapping());
  43. modelBuilder.Configurations.Add(new CF_Staff_Mapping());
  44. modelBuilder.Configurations.Add(new CF_StaffProfile_Mapping());
  45. modelBuilder.Configurations.Add(new CF_Student_Mapping());
  46. modelBuilder.Configurations.Add(new CF_StudentContact_Mapping());
  47. modelBuilder.Configurations.Add(new CF_StudentContrast_Mapping());
  48. modelBuilder.Configurations.Add(new CF_StudentRole_Mapping());
  49. modelBuilder.Configurations.Add(new CF_University_Mapping());
  50. modelBuilder.Configurations.Add(new Coursework_Mapping());
  51. modelBuilder.Configurations.Add(new CourseworkAnswer_Mapping());
  52. modelBuilder.Configurations.Add(new CourseworkResult_Mapping());
  53. modelBuilder.Configurations.Add(new EM_CourseChapter_Mapping());
  54. modelBuilder.Configurations.Add(new EM_CourseChapter_Video_Mapping());
  55. modelBuilder.Configurations.Add(new EM_Coursematerial_Mapping());
  56. modelBuilder.Configurations.Add(new EM_CoursematerialExtend_Mapping());
  57. modelBuilder.Configurations.Add(new EM_CourseStudyStatus_Mapping());
  58. modelBuilder.Configurations.Add(new EM_CourseVideo_Mapping());
  59. modelBuilder.Configurations.Add(new EM_EducationMission_Mapping());
  60. modelBuilder.Configurations.Add(new EM_EducationMissionClass_Mapping());
  61. modelBuilder.Configurations.Add(new EM_EducationMissionClass_CF_Classmajor_Mapping());
  62. modelBuilder.Configurations.Add(new EM_EducationMissionClassTeachingSetting_Mapping());
  63. modelBuilder.Configurations.Add(new EM_EducationSchedulingClass_Mapping());
  64. modelBuilder.Configurations.Add(new EM_EducationSchedulingClass_CF_Student_Mapping());
  65. modelBuilder.Configurations.Add(new EM_ExecutableFreeSelectionCouse_Mapping());
  66. modelBuilder.Configurations.Add(new EM_ExecutableFreeSelectionCouseTeachingSetting_Mapping());
  67. modelBuilder.Configurations.Add(new EM_ExecutableOptionalCourse_Mapping());
  68. modelBuilder.Configurations.Add(new EM_ExecutableOptionalCourseTeachingSetting_Mapping());
  69. modelBuilder.Configurations.Add(new EM_ExecutablePlan_Mapping());
  70. modelBuilder.Configurations.Add(new EM_ExecutablePlanTeachingSetting_Mapping());
  71. modelBuilder.Configurations.Add(new EM_FreeSelectionCouse_Mapping());
  72. modelBuilder.Configurations.Add(new EM_FTPVideo_Mapping());
  73. modelBuilder.Configurations.Add(new EM_MissionClassTeacher_Mapping());
  74. modelBuilder.Configurations.Add(new EM_OptionalCoursePlan_Mapping());
  75. modelBuilder.Configurations.Add(new EM_SpecialtyCourse_Mapping());
  76. modelBuilder.Configurations.Add(new EM_SpecialtyCourseTeachingSetting_Mapping());
  77. modelBuilder.Configurations.Add(new ER_ScoreRule_Mapping());
  78. modelBuilder.Configurations.Add(new ER_TeacherScore_Mapping());
  79. modelBuilder.Configurations.Add(new Exam_Log_Mapping());
  80. modelBuilder.Configurations.Add(new ExamineeAnswer_Mapping());
  81. modelBuilder.Configurations.Add(new ExamPaper_Mapping());
  82. modelBuilder.Configurations.Add(new ExamResult_Mapping());
  83. modelBuilder.Configurations.Add(new ExamResult_backup_20120913_Mapping());
  84. modelBuilder.Configurations.Add(new ExamSetting_Examiner_Mapping());
  85. modelBuilder.Configurations.Add(new ExamWarning_Mapping());
  86. modelBuilder.Configurations.Add(new MSreplication_objects_Mapping());
  87. modelBuilder.Configurations.Add(new MSreplication_subscriptions_Mapping());
  88. modelBuilder.Configurations.Add(new MSsavedforeignkeycolumns_Mapping());
  89. modelBuilder.Configurations.Add(new MSsavedforeignkeyextendedproperties_Mapping());
  90. modelBuilder.Configurations.Add(new MSsavedforeignkeys_Mapping());
  91. modelBuilder.Configurations.Add(new MSsnapshotdeliveryprogress_Mapping());
  92. modelBuilder.Configurations.Add(new MSsubscription_agents_Mapping());
  93. modelBuilder.Configurations.Add(new Sys_Dictionary_Mapping());
  94. modelBuilder.Configurations.Add(new Sys_DictionaryItem_Mapping());
  95. modelBuilder.Configurations.Add(new Sys_FunctionCode_Mapping());
  96. modelBuilder.Configurations.Add(new Sys_LoginCount_Mapping());
  97. modelBuilder.Configurations.Add(new Sys_MailVerifyCode_Mapping());
  98. modelBuilder.Configurations.Add(new Sys_Menu_Mapping());
  99. modelBuilder.Configurations.Add(new Sys_Role_Mapping());
  100. modelBuilder.Configurations.Add(new Sys_User_Mapping());
  101. modelBuilder.Configurations.Add(new Sys_User_Sys_Role_Mapping());
  102. modelBuilder.Configurations.Add(new test_base_param_Mapping());
  103. modelBuilder.Configurations.Add(new test_base_param_type_Mapping());
  104. modelBuilder.Configurations.Add(new test_base_question_type_Mapping());
  105. modelBuilder.Configurations.Add(new test_comm_param_set_Mapping());
  106. modelBuilder.Configurations.Add(new test_comm_set_Mapping());
  107. modelBuilder.Configurations.Add(new test_exchange_Mapping());
  108. modelBuilder.Configurations.Add(new test_keyword_Mapping());
  109. modelBuilder.Configurations.Add(new test_onlinetest_Mapping());
  110. modelBuilder.Configurations.Add(new test_onlinetest_man_Mapping());
  111. modelBuilder.Configurations.Add(new test_onlinetest_manshow_Mapping());
  112. modelBuilder.Configurations.Add(new test_paper_Mapping());
  113. modelBuilder.Configurations.Add(new test_paper_guide_Mapping());
  114. modelBuilder.Configurations.Add(new test_paper_question_set_Mapping());
  115. modelBuilder.Configurations.Add(new test_paper_question_set_fortest_Mapping());
  116. modelBuilder.Configurations.Add(new test_question_Mapping());
  117. modelBuilder.Configurations.Add(new test_question_administrator_Mapping());
  118. modelBuilder.Configurations.Add(new test_question_file_Mapping());
  119. modelBuilder.Configurations.Add(new test_question_keyword_Mapping());
  120. modelBuilder.Configurations.Add(new test_question_libary_Mapping());
  121. modelBuilder.Configurations.Add(new test_question_provid_answer_Mapping());
  122. modelBuilder.Configurations.Add(new v_question_Mapping());
  123. modelBuilder.Configurations.Add(new V_StudentEducationMissionClass_Mapping());
  124. modelBuilder.Configurations.Add(new v_test_question_Mapping());
  125. modelBuilder.Configurations.Add(new VTestQestion_Mapping());
  126. }
  127. public DbSet<CF_Campus> CF_Campus { get; set; }
  128. public DbSet<CF_Classmajor> CF_Classmajor { get; set; }
  129. public DbSet<CF_College> CF_College { get; set; }
  130. public DbSet<CF_Department> CF_Department { get; set; }
  131. public DbSet<CF_Facultymajor> CF_Facultymajor { get; set; }
  132. public DbSet<CF_Grademajor> CF_Grademajor { get; set; }
  133. public DbSet<CF_Recruitstudents> CF_Recruitstudents { get; set; }
  134. public DbSet<CF_Schoolyear> CF_Schoolyear { get; set; }
  135. public DbSet<CF_Staff> CF_Staff { get; set; }
  136. public DbSet<CF_StaffProfile> CF_StaffProfile { get; set; }
  137. public DbSet<CF_Student> CF_Student { get; set; }
  138. public DbSet<CF_StudentContact> CF_StudentContact { get; set; }
  139. public DbSet<CF_StudentContrast> CF_StudentContrast { get; set; }
  140. public DbSet<CF_StudentRole> CF_StudentRole { get; set; }
  141. public DbSet<CF_University> CF_University { get; set; }
  142. public DbSet<Coursework> Coursework { get; set; }
  143. public DbSet<CourseworkAnswer> CourseworkAnswer { get; set; }
  144. public DbSet<CourseworkResult> CourseworkResult { get; set; }
  145. public DbSet<EM_CourseChapter> EM_CourseChapter { get; set; }
  146. public DbSet<EM_CourseChapter_Video> EM_CourseChapter_Video { get; set; }
  147. public DbSet<EM_Coursematerial> EM_Coursematerial { get; set; }
  148. public DbSet<EM_CoursematerialExtend> EM_CoursematerialExtend { get; set; }
  149. public DbSet<EM_CourseStudyStatus> EM_CourseStudyStatus { get; set; }
  150. public DbSet<EM_CourseVideo> EM_CourseVideo { get; set; }
  151. public DbSet<EM_EducationMission> EM_EducationMission { get; set; }
  152. public DbSet<EM_EducationMissionClass> EM_EducationMissionClass { get; set; }
  153. public DbSet<EM_EducationMissionClass_CF_Classmajor> EM_EducationMissionClass_CF_Classmajor { get; set; }
  154. public DbSet<EM_EducationMissionClassTeachingSetting> EM_EducationMissionClassTeachingSetting { get; set; }
  155. public DbSet<EM_EducationSchedulingClass> EM_EducationSchedulingClass { get; set; }
  156. public DbSet<EM_EducationSchedulingClass_CF_Student> EM_EducationSchedulingClass_CF_Student { get; set; }
  157. public DbSet<EM_ExecutableFreeSelectionCouse> EM_ExecutableFreeSelectionCouse { get; set; }
  158. public DbSet<EM_ExecutableFreeSelectionCouseTeachingSetting> EM_ExecutableFreeSelectionCouseTeachingSetting { get; set; }
  159. public DbSet<EM_ExecutableOptionalCourse> EM_ExecutableOptionalCourse { get; set; }
  160. public DbSet<EM_ExecutableOptionalCourseTeachingSetting> EM_ExecutableOptionalCourseTeachingSetting { get; set; }
  161. public DbSet<EM_ExecutablePlan> EM_ExecutablePlan { get; set; }
  162. public DbSet<EM_ExecutablePlanTeachingSetting> EM_ExecutablePlanTeachingSetting { get; set; }
  163. public DbSet<EM_FreeSelectionCouse> EM_FreeSelectionCouse { get; set; }
  164. public DbSet<EM_FTPVideo> EM_FTPVideo { get; set; }
  165. public DbSet<EM_MissionClassTeacher> EM_MissionClassTeacher { get; set; }
  166. public DbSet<EM_OptionalCoursePlan> EM_OptionalCoursePlan { get; set; }
  167. public DbSet<EM_SpecialtyCourse> EM_SpecialtyCourse { get; set; }
  168. public DbSet<EM_SpecialtyCourseTeachingSetting> EM_SpecialtyCourseTeachingSetting { get; set; }
  169. public DbSet<ER_ScoreRule> ER_ScoreRule { get; set; }
  170. public DbSet<ER_TeacherScore> ER_TeacherScore { get; set; }
  171. public DbSet<Exam_Log> Exam_Log { get; set; }
  172. public DbSet<ExamineeAnswer> ExamineeAnswer { get; set; }
  173. public DbSet<ExamPaper> ExamPaper { get; set; }
  174. public DbSet<ExamResult> ExamResult { get; set; }
  175. public DbSet<ExamResult_backup_20120913> ExamResult_backup_20120913 { get; set; }
  176. public DbSet<ExamSetting_Examiner> ExamSetting_Examiner { get; set; }
  177. public DbSet<ExamWarning> ExamWarning { get; set; }
  178. public DbSet<MSreplication_objects> MSreplication_objects { get; set; }
  179. public DbSet<MSreplication_subscriptions> MSreplication_subscriptions { get; set; }
  180. public DbSet<MSsavedforeignkeycolumns> MSsavedforeignkeycolumns { get; set; }
  181. public DbSet<MSsavedforeignkeyextendedproperties> MSsavedforeignkeyextendedproperties { get; set; }
  182. public DbSet<MSsavedforeignkeys> MSsavedforeignkeys { get; set; }
  183. public DbSet<MSsnapshotdeliveryprogress> MSsnapshotdeliveryprogress { get; set; }
  184. public DbSet<MSsubscription_agents> MSsubscription_agents { get; set; }
  185. public DbSet<Sys_Dictionary> Sys_Dictionary { get; set; }
  186. public DbSet<Sys_DictionaryItem> Sys_DictionaryItem { get; set; }
  187. public DbSet<Sys_FunctionCode> Sys_FunctionCode { get; set; }
  188. public DbSet<Sys_LoginCount> Sys_LoginCount { get; set; }
  189. public DbSet<Sys_MailVerifyCode> Sys_MailVerifyCode { get; set; }
  190. public DbSet<Sys_Menu> Sys_Menu { get; set; }
  191. public DbSet<Sys_Role> Sys_Role { get; set; }
  192. public DbSet<Sys_User> Sys_User { get; set; }
  193. public DbSet<Sys_User_Sys_Role> Sys_User_Sys_Role { get; set; }
  194. public DbSet<test_base_param> test_base_param { get; set; }
  195. public DbSet<test_base_param_type> test_base_param_type { get; set; }
  196. public DbSet<test_base_question_type> test_base_question_type { get; set; }
  197. public DbSet<test_comm_param_set> test_comm_param_set { get; set; }
  198. public DbSet<test_comm_set> test_comm_set { get; set; }
  199. public DbSet<test_exchange> test_exchange { get; set; }
  200. public DbSet<test_keyword> test_keyword { get; set; }
  201. public DbSet<test_onlinetest> test_onlinetest { get; set; }
  202. public DbSet<test_onlinetest_man> test_onlinetest_man { get; set; }
  203. public DbSet<test_onlinetest_manshow> test_onlinetest_manshow { get; set; }
  204. public DbSet<test_paper> test_paper { get; set; }
  205. public DbSet<test_paper_guide> test_paper_guide { get; set; }
  206. public DbSet<test_paper_question_set> test_paper_question_set { get; set; }
  207. public DbSet<test_paper_question_set_fortest> test_paper_question_set_fortest { get; set; }
  208. public DbSet<test_question> test_question { get; set; }
  209. public DbSet<test_question_administrator> test_question_administrator { get; set; }
  210. public DbSet<test_question_file> test_question_file { get; set; }
  211. public DbSet<test_question_keyword> test_question_keyword { get; set; }
  212. public DbSet<test_question_libary> test_question_libary { get; set; }
  213. public DbSet<test_question_provid_answer> test_question_provid_answer { get; set; }
  214. public DbSet<v_question> v_question { get; set; }
  215. public DbSet<V_StudentEducationMissionClass> V_StudentEducationMissionClass { get; set; }
  216. public DbSet<v_test_question> v_test_question { get; set; }
  217. public DbSet<VTestQestion> VTestQestion { get; set; }
  218. }
  219. }