Error: Must declare the scalar variable @CustomerID
PredicateExpression filter = null;
IRelationPredicateBucket bucket = new RelationPredicateBucket();
bucket.Relations.Add(Order.Relations.OrderID, JoinHint.Left);
filter = new PredicateExpression(theField == strValue);
DataTable dynamicList = new DataTable();
adapter.FetchTypedList(fields, dynamicList, bucket, 20, null, true, null);
Isn't this all that is required?
When just adding the join it works correctly, once I add the filter it complains about declaring the parameters...
With the adapter you don't need to do an parameterization do you?
What is wrong with this?