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; }
public ATrineQuery(ATrineQueryProvider queryProvider) { provider = queryProvider ?? throw new ArgumentNullException(nameof(queryProvider)); expression = Expression.Default(typeof(ATrineQuery <T>)); }