Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表达式查询增加字段自动过滤后导致部门管理报Instance property 'UserIds' is not defined #170

Open
allan98 opened this issue Apr 21, 2024 · 4 comments

Comments

@allan98
Copy link

allan98 commented Apr 21, 2024

System.ArgumentException: Instance property 'UserIds' is not defined for type 'YiSha.Entity.OrganizationManage.UserEntity' (Parameter 'propertyName') at System.Linq.Expressions.Expression.Property(Expression expression, String propertyName) at YiSha.Util.Extension.LinqExtensions.GetExpressionItems[T,TT](TT input)

@allan98
Copy link
Author

allan98 commented Apr 21, 2024

.Net8分支

@jimmy201516
Copy link

请问这个问题何解,我也遇到了

@smartdust007
Copy link

smartdust007 commented May 13, 2024 via email

@hong3731
Copy link

不知道为什么,把DepartmentBLL里面的GetList的修改成

            List<UserEntity> userList = new List<UserEntity>();//await userService.GetList(new UserListParam { UserIds = string.Join(",", obj.Data.Select(p => p.PrincipalId).ToArray()) });
            var userids = obj.Data.Select(p => p.PrincipalId).ToArray();
            for (int i = 0; i < userids.Length; i++)
            {
                UserEntity user = await userService.GetEntity((long)userids[i]);
                userList.Add(user);
            }

bingtianyiyan added a commit to bingtianyiyan/YiShaAdmin that referenced this issue Jun 19, 2024
bingtianyiyan added a commit to bingtianyiyan/YiShaAdmin that referenced this issue Jun 22, 2024
liukuo362573 added a commit that referenced this issue Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants