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
You can use the PredicateBuilder class.
PredicateBuilder has been released in the LINQKit NuGet package
LINQKit is a free set of extensions for LINQ to SQL and Entity Framework power users.