コード例 #1
0
 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");
     }
 }
コード例 #2
0
 public PessoaQuery(PessoaQueryProvider provider)
 {
     this.provider = provider ?? throw new ArgumentNullException("provider");
     expression    = Expression.Constant(this);
 }