Пример #1
0
 public RestQueryRoot(RestQueryProvider provider, string uri)
     : base(provider)
 {
     if (uri == null)
     {
         throw new ArgumentNullException(nameof(uri));
     }
     Uri = uri;
 }
Пример #2
0
 protected RestQuery(RestQueryProvider provider)
 {
     if (provider == null)
     {
         throw new ArgumentNullException(nameof(provider));
     }
     this.provider = provider;
     Expression    = Expression.Constant(this);
 }
Пример #3
0
 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;
 }