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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -