dotnetcore / dotnetcore/WTM

.net core 6 进行联查发现LoginUserInfo.DataPrivileges无法使用

Open
#583 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
4.3k
Forks
896
PR merge metrics
No merged PRs in 30d

Description

public IActionResult GetChildrenCity(Guid id)
{
var rv = DC.Set().Where(x => x.ParentId == id).GetSelectListItems(LoginUserInfo.DataPrivileges,null,x => x.Name);
return Json(rv);//报错显示对象引用非静态的字段
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.