Esempio n. 1
0
 public RolePowerBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new RolePowerDAL(dbContext);
     this.powerDAL = new PowerDAL(dbContext);
     this.roleDAL = new RoleDAL(dbContext);
 }
Esempio n. 2
0
 public AdminUserRoleBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new AdminUserRoleDAL(dbContext);
     this.adminUserDAL = new AdminUserDAL(dbContext);
     this.roleDAL = new RoleDAL(dbContext);
 }
Esempio n. 3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            log4net.Config.XmlConfigurator.Configure();

            // EF暖机操作(加载映射到内存中)
            using (HengNuoWangDBContext dbContext = new HengNuoWangDBContext())
            {
                var objectContext = ((IObjectContextAdapter)dbContext).ObjectContext;
                var mapppingCollection = (System.Data.Entity.Core.Mapping.StorageMappingItemCollection)
                        objectContext.MetadataWorkspace.GetItemCollection(System.Data.Entity.Core.Metadata.Edm.DataSpace.CSSpace);
                mapppingCollection.GenerateViews(new List<System.Data.Entity.Core.Metadata.Edm.EdmSchemaError>());
            }
        }
Esempio n. 4
0
 public AdminOperationLogBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new AdminOperationLogDAL(dbContext);
 }
Esempio n. 5
0
 public PowerBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     dal = new PowerDAL(dbContext);
 }
Esempio n. 6
0
 public ChapterBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new ChapterDal(dbContext);
 }
Esempio n. 7
0
 public AdminOperationLogDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 8
0
 public RoleBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new RoleDAL(dbContext);
 }
Esempio n. 9
0
 public ChapterDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
 }
Esempio n. 10
0
 public SegmentBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new SegmentDal(dbContext);
 }
Esempio n. 11
0
 public RolePowerDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 12
0
 public SegmentDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
 }
Esempio n. 13
0
 public CourseBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new CourseDal(dbContext);
 }
Esempio n. 14
0
 public AdminUserBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     dal = new AdminUserDAL(dbContext);
 }
Esempio n. 15
0
 public CourseDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._chapterDal = new ChapterDal(dbContext);
 }
Esempio n. 16
0
 public AdminUserDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
Esempio n. 17
0
 /// <summary>
 /// 创建DbContext,并且保存到HttpContext
 /// </summary>
 internal static void CreateDbContext()
 {
     HengNuoWangDBContext dbContext = new HengNuoWangDBContext();
     HttpContext.Current.Items[SessionKeyHelper.HENGNUOWANG_DBCONTEXT_KEY] = dbContext;
 }