public ElasticQuery(ElasticQueryProvider provider, Expression expression) { if (!typeof(IQueryable <T>).IsAssignableFrom(expression.Type)) { throw new ArgumentOutOfRangeException("expression"); } this.provider = provider; this.expression = expression; }
public ElasticQuery(ElasticQueryProvider provider) { this.provider = provider; expression = Expression.Constant(this); }