Esempio n. 1
0
 public EntityQueryable(IQueryable source, Expression expression, IQueryStrategy queryStrategy)
 {
     if (expression == null)
     {
         throw new ArgumentNullException("expression");
     }
     this._expression = expression;
     this._provider   = new EntityQueryProvider(source, queryStrategy);
 }
Esempio n. 2
0
 public EntityQueryable(IQueryable source, IQueryStrategy queryStrategy)
 {
     if (source == null)
     {
         throw new ArgumentNullException("source");
     }
     if (queryStrategy == null)
     {
         throw new ArgumentNullException("ordering");
     }
     this._expression = Expression.Constant(this);
     this._provider   = new EntityQueryProvider(source, queryStrategy);
 }