//------------------------------------------------------------------------------ // // 此代码已从模板生成。 // // 手动更改此文件可能导致应用程序出现意外的行为。 // 如果重新生成代码,将覆盖对此文件的手动更改。 // //------------------------------------------------------------------------------ namespace EMIS.Entities.DataCenter { using System; using System.Data.Entity; using System.Data.Entity.Infrastructure; public partial class DataCenterContextContainer : DbContext { public DataCenterContextContainer() : base("name=DataCenterContextContainer") { var objectContext = (this as IObjectContextAdapter).ObjectContext; objectContext.CommandTimeout = 12000; base.Configuration.ProxyCreationEnabled = false; } static DataCenterContextContainer() { Database.SetInitializer(null); } public DataCenterContextContainer(string nameOrConnectionString) : base(nameOrConnectionString) { var objectContext = (this as IObjectContextAdapter).ObjectContext; objectContext.CommandTimeout = 12000; base.Configuration.ProxyCreationEnabled = false; } protected override void OnModelCreating(DbModelBuilder modelBuilder) { throw new UnintentionalCodeFirstException(); } public virtual DbSet XB_BJDM { get; set; } public virtual DbSet XB_BXZY { get; set; } public virtual DbSet XB_DWBM { get; set; } public virtual DbSet XS_LXXX { get; set; } public virtual DbSet XS_XJYD { get; set; } public virtual DbSet XS_XSJBXX { get; set; } } }