asp.net core - How do I filter Users by Role Id -


how filter users role id in asp.net.identity 3.0?

i can't navigate roles (x => x.roles) anymore.

prior version (asp.net.identity 2.0)

i had been filtering users role id following

list<applicationuser> adminusers = _context.users.where(x => x.any(y => y.roleid == testadminid || y.roleid == adminid)).tolist(); 


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -