public RestQueryRoot(RestQueryProvider provider, string uri) : base(provider) { if (uri == null) { throw new ArgumentNullException(nameof(uri)); } Uri = uri; }
protected RestQuery(RestQueryProvider provider) { if (provider == null) { throw new ArgumentNullException(nameof(provider)); } this.provider = provider; Expression = Expression.Constant(this); }
public RestQuery(RestQueryProvider provider, Expression expression) { if (provider == null) { throw new ArgumentNullException(nameof(provider)); } if (expression == null) { throw new ArgumentNullException(nameof(expression)); } if (!typeof(IQueryable <T>).IsAssignableFrom(expression.Type)) { throw new ArgumentOutOfRangeException(nameof(expression)); } this.provider = provider; Expression = expression; }