示例#1
0
 public RolePowerBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new RolePowerDAL(dbContext);
     this.powerDAL = new PowerDAL(dbContext);
     this.roleDAL = new RoleDAL(dbContext);
 }
示例#2
0
 public AdminUserRoleBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new AdminUserRoleDAL(dbContext);
     this.adminUserDAL = new AdminUserDAL(dbContext);
     this.roleDAL = new RoleDAL(dbContext);
 }
示例#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>());
            }
        }
 public AdminOperationLogBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new AdminOperationLogDAL(dbContext);
 }
示例#5
0
 public PowerBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     dal = new PowerDAL(dbContext);
 }
示例#6
0
 public ChapterBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new ChapterDal(dbContext);
 }
 public AdminOperationLogDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#8
0
 public RoleBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     this.dal = new RoleDAL(dbContext);
 }
示例#9
0
 public ChapterDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
 }
示例#10
0
 public SegmentBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new SegmentDal(dbContext);
 }
示例#11
0
 public RolePowerDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#12
0
 public SegmentDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
 }
示例#13
0
 public CourseBll(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._dal = new CourseDal(dbContext);
 }
示例#14
0
 public AdminUserBLL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
     dal = new AdminUserDAL(dbContext);
 }
示例#15
0
 public CourseDal(HengNuoWangDBContext dbContext)
 {
     this._dbContext = dbContext;
     this._chapterDal = new ChapterDal(dbContext);
 }
示例#16
0
 public AdminUserDAL(HengNuoWangDBContext dbContext)
 {
     this.dbContext = dbContext;
 }
示例#17
0
 /// <summary>
 /// 创建DbContext,并且保存到HttpContext
 /// </summary>
 internal static void CreateDbContext()
 {
     HengNuoWangDBContext dbContext = new HengNuoWangDBContext();
     HttpContext.Current.Items[SessionKeyHelper.HENGNUOWANG_DBCONTEXT_KEY] = dbContext;
 }