Convert this Linq query from query syntax to lambda expression
- by Jinkinz
I'm not sure I like linq query syntax...its just not my preference. But I don't know what this query would look like using lambda expressions, can someone help?
from securityRoles in user.SecurityRoles
from permissions in securityRoles.Permissions
where permissions.SecurableEntity.Name == "Unit" && permissions.PermissionType.Name == "Read"
orderby permissions.PermissionLevel.Value descending
select permissions
There is a many-to-many relationship between users and security roles that makes this extra confusing.
Thanks!
Kelly