public EntityQueryable(IQueryable source, Expression expression, IQueryStrategy queryStrategy) { if (expression == null) { throw new ArgumentNullException("expression"); } this._expression = expression; this._provider = new EntityQueryProvider(source, queryStrategy); }
public EntityQueryable(IQueryable source, IQueryStrategy queryStrategy) { if (source == null) { throw new ArgumentNullException("source"); } if (queryStrategy == null) { throw new ArgumentNullException("ordering"); } this._expression = Expression.Constant(this); this._provider = new EntityQueryProvider(source, queryStrategy); }