/// <summary> /// 删除权限 /// </summary> /// <param name="authorityId">权限Id</param> public void RemoveAuthority(Guid authorityId) { Authority currentAuthority = this._unitOfWork.Resolve <Authority>(authorityId); currentAuthority.ClearRelations(); this._unitOfWork.RegisterRemove <Authority>(currentAuthority); this._unitOfWork.UnitedCommit(); }