예제 #1
0
        public ElasticQuery(ElasticQueryProvider provider, Expression expression)
        {
            if (!typeof(IQueryable <T>).IsAssignableFrom(expression.Type))
            {
                throw new ArgumentOutOfRangeException("expression");
            }

            this.provider   = provider;
            this.expression = expression;
        }
예제 #2
0
 public ElasticQuery(ElasticQueryProvider provider)
 {
     this.provider = provider;
     expression    = Expression.Constant(this);
 }