We are using newest version 6.1.4
In one of our queries, we use a predicate like this:
var ids = someIds as List<int>;
var predicate = PredicateBuilder.False<EntAlarm>();
if (ids.Count > 0)
predicate = ids.Aggregate(predicate,
(current, id) =>
current.Or(a => a.p_alarmID == id));
var query = p_manager.EntAlarms.Where(predicate);
query.QueryStrategy = new QueryStrategy(FetchStrategy.DataSourceThenCache, MergeStrategy.PreserveChanges);
If the list of someIds gets big (2000 ids), we get a stackoverflow error in IdeaBlade.Linq.dll.
Are there some limits, when working with predicates?
Edited by danjal - 29-Dec-2011 at 8:10am