How to build an IEnumerable<int>.Contains() Expression?
I'm currently working with ASP Dynamic Data for the first time and I'm trying to build a filter. Our users have a need to locate items in a list based upon whether or not the item is a child of a selected parent (our items can have more than one parent). The items in question are Segments and each Segment has a property called RouteIds, of type IEnumerable, which is a collection of all of the Segment's parent Ids. I've gotten to this point in overriding the GetQueryable method in my filter, but I keep getting exceptions thrown on the last line shown: ConstantExpression ce = Expression.Constant