0
alinm created
what is the use of this class - [MyProject]AppServiceBase ??
In my PersonAppService(inherits ApplicationService) i can query using linq like: var user_info = _userManager.Users.Where(a => a.Id == this.AbpSession.UserId).Select(b => b);
But in UserAppService(created by template and inherits ProjectNameAppServiceBase) i cannot query using linq. It does not allow this: _userManager.Users.Where.....
what is the solution???
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Base class injects UserManager as "UserManager" property. So, use
UserManager.Users.Where...
instead of
_userManager.Users.Where..
if you like _userManager, inject it into your service as you probably did for PersonAppService.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
OK got it. i was missing System.Linq reference. Thanks!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)