Exemplo n.º 1
0
 public ATrineQuery(ATrineQueryProvider queryProvider, Expression queyExpression)
 {
     if (queyExpression == null)
     {
         throw new ArgumentNullException(nameof(queyExpression));
     }
     if (!typeof(IQueryable <T>).IsAssignableFrom(queyExpression.Type))
     {
         throw new ArgumentOutOfRangeException(nameof(queyExpression));
     }
     provider   = queryProvider ?? throw new ArgumentNullException(nameof(queryProvider));
     expression = queyExpression;
 }
Exemplo n.º 2
0
 public ATrineQuery(ATrineQueryProvider queryProvider)
 {
     provider   = queryProvider ?? throw new ArgumentNullException(nameof(queryProvider));
     expression = Expression.Default(typeof(ATrineQuery <T>));
 }