Hi Frans
I ran into this problem when implementing filtering support into my lambda-based prefetch syntax.
This query against northwind:
LinqMetaData meta = new LinqMetaData(adapter);
var query = from c in meta.Customer select c;
query = query.WithPath(new PathEdge<OrderEntity>(CustomerEntity.PrefetchPathOrder, o => o.ShipName.EndsWith("hevalier")));
Produces this error in QueryExpressionBuilder.HandlePathEdgeExpression:
System.InvalidCastException: Unable to cast object of type 'System.Linq.Expressions.MethodCallExpression' to type 'SD.LLBLGen.Pro.LinqSupportClasses.ExpressionClasses.FilterExpression'.