123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // 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.
- // </auto-generated>
- //------------------------------------------------------------------------------
- #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<HRServiceContextContainer>(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<IncludeMetadataConvention>();
- 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> Comm_OrgInfo { get; set; }
- public DbSet<Comm_Posts> Comm_Posts { get; set; }
- public DbSet<Comm_Users> Comm_Users { get; set; }
- }
- }
|