【发布时间】:2011-06-22 19:10:58
【问题描述】:
我正在尝试弄清楚如何组合以下表达式:
Expression<Func<TParent, ICollection<TChild>>> childSelector = p => p.Children;
Expression<Func<TChild, bool>> childPredicate = c => c.NameLast.StartsWith("V");
var anyExpression = childSelector <------> .Any(childPredicate);
“”是我不知道该怎么处理的部分。我正在使用 LINQKit,我只是不知道如何组合这些表达式。
有人可以帮帮我吗?
【问题讨论】:
标签: c# .net-4.0 linq-to-entities expression-trees