public RoleLogic() { string mode; try { mode = ConfigurationManager.AppSettings["DataMode"]; } catch (Exception e) { Logger.Logger.WriteLog(e); throw new Exception("Some problem with configuration file", e); } try { switch (mode) { case "DATABASE": { dal = new RoleDAL(); } break; } } catch (Exception e) { Logger.Logger.WriteLog(e); throw e; } }
public RoleBLL() : base() { base.Init(this.GetType().FullName, System.Reflection.Assembly.GetExecutingAssembly().GetName().Name); baseDal.OnOperationLog += new OperationLogEventHandler(Next.Admin.BLL.OperationLogBLL.OnOperationLog);//如果需要记录操作日志,则实现这个事件 this.roleDAL = (IRoleDAL)base.baseDal; }
public UserDALManageFacade() { _userDALProvider = new UserDAL(); _imageDALProvider = new ImgStorageDAL(); _userroleDALProvider = new UserRoleDAL(); _roleDALProvider = new RoleDAL(); }
public RoleService(LdCmsDbEntitiesContext LdCmsDbEntitiesContext, IRoleDAL RoleDAL) { this.LdCmsDbEntitiesContext = LdCmsDbEntitiesContext; this.RoleDAL = RoleDAL; this.Dal = RoleDAL; }
public RoleBLL(IRoleDAL roleDAL, IHttpContextAccessor accessor) { _dal = roleDAL; _accessor = accessor; }
public RoleManager(IRoleDAL roleDal) { _roleDal = roleDal; }
public RoleService(CTMSContext CTMSContext, IRoleDAL RoleDAL) { this.CTMSContext = CTMSContext; this.RoleDAL = RoleDAL; this.Dal = RoleDAL; }
public RoleBLL(IRoleDAL dal) : base(dal) { }
public RoleBLL(IRoleDAL role, IMapper mapper) { _role = role; _mapper = mapper; }
public static IRoleDAL GetRoleDAL() { IRoleDAL dal = GetInstance("RoleDAL") as IRoleDAL; return(dal); }
public RoleBLL() { _role = new RoleDAL(); }
public UserDAL(Database database) { db = database; RoleDal = new RoleDAL(database); }
public UserDAL() { db = new Database(); RoleDal = new RoleDAL(); }
public RoleManager(IRolePrivilegeService rolePrivilegeService, IRoleDAL roleDAL) { this.rolePrivilegeService = rolePrivilegeService; this.roleDAL = roleDAL; }
public UserBLL(IUserDAL user, IRoleDAL role, IMapper mapper) { _user = user; _role = role; _mapper = mapper; }
/// <summary> /// 岗位管理 /// </summary> public RoleController(IRoleDAL roleDAL) { _roleDAL = roleDAL; }
public RoleService(IRoleDAL roleDAL) { _roleDAL = roleDAL; }
/// <summary> /// 构造函数 /// </summary> /// <param name="roleDAL">角色</param> public RoleBLL(IRoleDAL _roleDAL) { this.roleDAL = _roleDAL; }