public static Where ( this source, |
||
source | this | |
predicate | ||
return | IQueryable |
public static IQueryable Where(this IQueryable source, LambdaExpression predicate)
{
if (source == null) throw new ArgumentNullException(nameof(source));
if (predicate == null) throw new ArgumentNullException(nameof(predicate));
return source.Provider.CreateQuery(
Expression.Call(
typeof(Queryable), "Where",
new[] { source.ElementType },
source.Expression, Expression.Quote(predicate)));
}