I\'ve got a User table with a bitmask that contains the user\'s roles. The linq query below returns all the users whose roles include 1, 4 or 16.
var users
private List GetUsersFromRoles(uint UserRoles) { return from u in dc.Users where (u.UserRolesBitmask & UserRoles) != 0 select u; }
UserRoles parameter should be provided, however, as a bit mask, instead of array.