public RolePowerBLL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; this.dal = new RolePowerDAL(dbContext); this.powerDAL = new PowerDAL(dbContext); this.roleDAL = new RoleDAL(dbContext); }
public AdminUserRoleBLL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; this.dal = new AdminUserRoleDAL(dbContext); this.adminUserDAL = new AdminUserDAL(dbContext); this.roleDAL = new RoleDAL(dbContext); }
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); }
public PowerBLL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; dal = new PowerDAL(dbContext); }
public ChapterBll(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; this._dal = new ChapterDal(dbContext); }
public AdminOperationLogDAL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; }
public RoleBLL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; this.dal = new RoleDAL(dbContext); }
public ChapterDal(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; }
public SegmentBll(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; this._dal = new SegmentDal(dbContext); }
public RolePowerDAL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; }
public SegmentDal(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; }
public CourseBll(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; this._dal = new CourseDal(dbContext); }
public AdminUserBLL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; dal = new AdminUserDAL(dbContext); }
public CourseDal(HengNuoWangDBContext dbContext) { this._dbContext = dbContext; this._chapterDal = new ChapterDal(dbContext); }
public AdminUserDAL(HengNuoWangDBContext dbContext) { this.dbContext = dbContext; }
/// <summary> /// 创建DbContext,并且保存到HttpContext /// </summary> internal static void CreateDbContext() { HengNuoWangDBContext dbContext = new HengNuoWangDBContext(); HttpContext.Current.Items[SessionKeyHelper.HENGNUOWANG_DBCONTEXT_KEY] = dbContext; }