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