//------------------------------------------------------------------------------
//
// 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 EMISOnline.Entities
{
using System;
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
public partial class EMISOnlineContextContainer : DbContext
{
static EMISOnlineContextContainer()
{
Database.SetInitializer(null);
}
public EMISOnlineContextContainer() : base("name=EMISOnlineContextContainer") {
var objectContext = (this as IObjectContextAdapter).ObjectContext;
objectContext.CommandTimeout = 12000;
base.Configuration.ProxyCreationEnabled = false;
}
public EMISOnlineContextContainer(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_Campus_Mapping());
modelBuilder.Configurations.Add(new CF_Classmajor_Mapping());
modelBuilder.Configurations.Add(new CF_College_Mapping());
modelBuilder.Configurations.Add(new CF_Department_Mapping());
modelBuilder.Configurations.Add(new CF_Facultymajor_Mapping());
modelBuilder.Configurations.Add(new CF_Grademajor_Mapping());
modelBuilder.Configurations.Add(new CF_Recruitstudents_Mapping());
modelBuilder.Configurations.Add(new CF_Schoolyear_Mapping());
modelBuilder.Configurations.Add(new CF_Staff_Mapping());
modelBuilder.Configurations.Add(new CF_StaffProfile_Mapping());
modelBuilder.Configurations.Add(new CF_Student_Mapping());
modelBuilder.Configurations.Add(new CF_StudentContact_Mapping());
modelBuilder.Configurations.Add(new CF_StudentContrast_Mapping());
modelBuilder.Configurations.Add(new CF_StudentRole_Mapping());
modelBuilder.Configurations.Add(new CF_University_Mapping());
modelBuilder.Configurations.Add(new Coursework_Mapping());
modelBuilder.Configurations.Add(new CourseworkAnswer_Mapping());
modelBuilder.Configurations.Add(new CourseworkResult_Mapping());
modelBuilder.Configurations.Add(new EM_CourseChapter_Mapping());
modelBuilder.Configurations.Add(new EM_CourseChapter_Video_Mapping());
modelBuilder.Configurations.Add(new EM_Coursematerial_Mapping());
modelBuilder.Configurations.Add(new EM_CoursematerialExtend_Mapping());
modelBuilder.Configurations.Add(new EM_CourseStudyStatus_Mapping());
modelBuilder.Configurations.Add(new EM_CourseVideo_Mapping());
modelBuilder.Configurations.Add(new EM_EducationMission_Mapping());
modelBuilder.Configurations.Add(new EM_EducationMissionClass_Mapping());
modelBuilder.Configurations.Add(new EM_EducationMissionClass_CF_Classmajor_Mapping());
modelBuilder.Configurations.Add(new EM_EducationMissionClassTeachingSetting_Mapping());
modelBuilder.Configurations.Add(new EM_EducationSchedulingClass_Mapping());
modelBuilder.Configurations.Add(new EM_EducationSchedulingClass_CF_Student_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutableFreeSelectionCouse_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutableFreeSelectionCouseTeachingSetting_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutableOptionalCourse_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutableOptionalCourseTeachingSetting_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutablePlan_Mapping());
modelBuilder.Configurations.Add(new EM_ExecutablePlanTeachingSetting_Mapping());
modelBuilder.Configurations.Add(new EM_FreeSelectionCouse_Mapping());
modelBuilder.Configurations.Add(new EM_FTPVideo_Mapping());
modelBuilder.Configurations.Add(new EM_MissionClassTeacher_Mapping());
modelBuilder.Configurations.Add(new EM_OptionalCoursePlan_Mapping());
modelBuilder.Configurations.Add(new EM_SpecialtyCourse_Mapping());
modelBuilder.Configurations.Add(new EM_SpecialtyCourseTeachingSetting_Mapping());
modelBuilder.Configurations.Add(new ER_ScoreRule_Mapping());
modelBuilder.Configurations.Add(new ER_TeacherScore_Mapping());
modelBuilder.Configurations.Add(new Exam_Log_Mapping());
modelBuilder.Configurations.Add(new ExamineeAnswer_Mapping());
modelBuilder.Configurations.Add(new ExamPaper_Mapping());
modelBuilder.Configurations.Add(new ExamResult_Mapping());
modelBuilder.Configurations.Add(new ExamResult_backup_20120913_Mapping());
modelBuilder.Configurations.Add(new ExamSetting_Examiner_Mapping());
modelBuilder.Configurations.Add(new ExamWarning_Mapping());
modelBuilder.Configurations.Add(new MSreplication_objects_Mapping());
modelBuilder.Configurations.Add(new MSreplication_subscriptions_Mapping());
modelBuilder.Configurations.Add(new MSsavedforeignkeycolumns_Mapping());
modelBuilder.Configurations.Add(new MSsavedforeignkeyextendedproperties_Mapping());
modelBuilder.Configurations.Add(new MSsavedforeignkeys_Mapping());
modelBuilder.Configurations.Add(new MSsnapshotdeliveryprogress_Mapping());
modelBuilder.Configurations.Add(new MSsubscription_agents_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_LoginCount_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_User_Mapping());
modelBuilder.Configurations.Add(new Sys_User_Sys_Role_Mapping());
modelBuilder.Configurations.Add(new test_base_param_Mapping());
modelBuilder.Configurations.Add(new test_base_param_type_Mapping());
modelBuilder.Configurations.Add(new test_base_question_type_Mapping());
modelBuilder.Configurations.Add(new test_comm_param_set_Mapping());
modelBuilder.Configurations.Add(new test_comm_set_Mapping());
modelBuilder.Configurations.Add(new test_exchange_Mapping());
modelBuilder.Configurations.Add(new test_keyword_Mapping());
modelBuilder.Configurations.Add(new test_onlinetest_Mapping());
modelBuilder.Configurations.Add(new test_onlinetest_man_Mapping());
modelBuilder.Configurations.Add(new test_onlinetest_manshow_Mapping());
modelBuilder.Configurations.Add(new test_paper_Mapping());
modelBuilder.Configurations.Add(new test_paper_guide_Mapping());
modelBuilder.Configurations.Add(new test_paper_question_set_Mapping());
modelBuilder.Configurations.Add(new test_paper_question_set_fortest_Mapping());
modelBuilder.Configurations.Add(new test_question_Mapping());
modelBuilder.Configurations.Add(new test_question_administrator_Mapping());
modelBuilder.Configurations.Add(new test_question_file_Mapping());
modelBuilder.Configurations.Add(new test_question_keyword_Mapping());
modelBuilder.Configurations.Add(new test_question_libary_Mapping());
modelBuilder.Configurations.Add(new test_question_provid_answer_Mapping());
modelBuilder.Configurations.Add(new v_question_Mapping());
modelBuilder.Configurations.Add(new V_StudentEducationMissionClass_Mapping());
modelBuilder.Configurations.Add(new v_test_question_Mapping());
modelBuilder.Configurations.Add(new VTestQestion_Mapping());
}
public DbSet CF_Campus { get; set; }
public DbSet CF_Classmajor { get; set; }
public DbSet CF_College { get; set; }
public DbSet CF_Department { get; set; }
public DbSet CF_Facultymajor { get; set; }
public DbSet CF_Grademajor { get; set; }
public DbSet CF_Recruitstudents { get; set; }
public DbSet CF_Schoolyear { get; set; }
public DbSet CF_Staff { get; set; }
public DbSet CF_StaffProfile { get; set; }
public DbSet CF_Student { get; set; }
public DbSet CF_StudentContact { get; set; }
public DbSet CF_StudentContrast { get; set; }
public DbSet CF_StudentRole { get; set; }
public DbSet CF_University { get; set; }
public DbSet Coursework { get; set; }
public DbSet CourseworkAnswer { get; set; }
public DbSet CourseworkResult { get; set; }
public DbSet EM_CourseChapter { get; set; }
public DbSet EM_CourseChapter_Video { get; set; }
public DbSet EM_Coursematerial { get; set; }
public DbSet EM_CoursematerialExtend { get; set; }
public DbSet EM_CourseStudyStatus { get; set; }
public DbSet EM_CourseVideo { get; set; }
public DbSet EM_EducationMission { get; set; }
public DbSet EM_EducationMissionClass { get; set; }
public DbSet EM_EducationMissionClass_CF_Classmajor { get; set; }
public DbSet EM_EducationMissionClassTeachingSetting { get; set; }
public DbSet EM_EducationSchedulingClass { get; set; }
public DbSet EM_EducationSchedulingClass_CF_Student { get; set; }
public DbSet EM_ExecutableFreeSelectionCouse { get; set; }
public DbSet EM_ExecutableFreeSelectionCouseTeachingSetting { get; set; }
public DbSet EM_ExecutableOptionalCourse { get; set; }
public DbSet EM_ExecutableOptionalCourseTeachingSetting { get; set; }
public DbSet EM_ExecutablePlan { get; set; }
public DbSet EM_ExecutablePlanTeachingSetting { get; set; }
public DbSet EM_FreeSelectionCouse { get; set; }
public DbSet EM_FTPVideo { get; set; }
public DbSet EM_MissionClassTeacher { get; set; }
public DbSet EM_OptionalCoursePlan { get; set; }
public DbSet EM_SpecialtyCourse { get; set; }
public DbSet EM_SpecialtyCourseTeachingSetting { get; set; }
public DbSet ER_ScoreRule { get; set; }
public DbSet ER_TeacherScore { get; set; }
public DbSet Exam_Log { get; set; }
public DbSet ExamineeAnswer { get; set; }
public DbSet ExamPaper { get; set; }
public DbSet ExamResult { get; set; }
public DbSet ExamResult_backup_20120913 { get; set; }
public DbSet ExamSetting_Examiner { get; set; }
public DbSet ExamWarning { get; set; }
public DbSet MSreplication_objects { get; set; }
public DbSet MSreplication_subscriptions { get; set; }
public DbSet MSsavedforeignkeycolumns { get; set; }
public DbSet MSsavedforeignkeyextendedproperties { get; set; }
public DbSet MSsavedforeignkeys { get; set; }
public DbSet MSsnapshotdeliveryprogress { get; set; }
public DbSet MSsubscription_agents { get; set; }
public DbSet Sys_Dictionary { get; set; }
public DbSet Sys_DictionaryItem { get; set; }
public DbSet Sys_FunctionCode { get; set; }
public DbSet Sys_LoginCount { get; set; }
public DbSet Sys_MailVerifyCode { get; set; }
public DbSet Sys_Menu { get; set; }
public DbSet Sys_Role { get; set; }
public DbSet Sys_User { get; set; }
public DbSet Sys_User_Sys_Role { get; set; }
public DbSet test_base_param { get; set; }
public DbSet test_base_param_type { get; set; }
public DbSet test_base_question_type { get; set; }
public DbSet test_comm_param_set { get; set; }
public DbSet test_comm_set { get; set; }
public DbSet test_exchange { get; set; }
public DbSet test_keyword { get; set; }
public DbSet test_onlinetest { get; set; }
public DbSet test_onlinetest_man { get; set; }
public DbSet test_onlinetest_manshow { get; set; }
public DbSet test_paper { get; set; }
public DbSet test_paper_guide { get; set; }
public DbSet test_paper_question_set { get; set; }
public DbSet test_paper_question_set_fortest { get; set; }
public DbSet test_question { get; set; }
public DbSet test_question_administrator { get; set; }
public DbSet test_question_file { get; set; }
public DbSet test_question_keyword { get; set; }
public DbSet test_question_libary { get; set; }
public DbSet test_question_provid_answer { get; set; }
public DbSet v_question { get; set; }
public DbSet V_StudentEducationMissionClass { get; set; }
public DbSet v_test_question { get; set; }
public DbSet VTestQestion { get; set; }
}
}