//------------------------------------------------------------------------------ // // 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.HRServices { using System; using System.Data.Common; using System.Data.Entity; using System.Data.Entity.Infrastructure; public partial class HRServiceContextContainer : DbContext { static HRServiceContextContainer() { Database.SetInitializer(null); } public HRServiceContextContainer() : base("name=HRServiceContextContainer") { var objectContext = (this as IObjectContextAdapter).ObjectContext; objectContext.CommandTimeout = 12000; base.Configuration.ProxyCreationEnabled = false; } public HRServiceContextContainer(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 Comm_OrgInfo_Mapping()); modelBuilder.Configurations.Add(new Comm_Posts_Mapping()); modelBuilder.Configurations.Add(new Comm_Users_Mapping()); } public DbSet Comm_OrgInfo { get; set; } public DbSet Comm_Posts { get; set; } public DbSet Comm_Users { get; set; } } }