예제 #1
0
 public FacadeTypeQueryable(IQueryable source, Expression expression)
 {
     if (expression == null)
     {
         throw new ArgumentNullException("expression");
     }
     _from       = source.ElementType;
     _to         = typeof(T);
     _expression = expression;
     _provider   = new FacadeTypeQueryProvider <T>(source);
     propertyMap = new Dictionary <string, string>();
 }
예제 #2
0
        public FacadeTypeQueryable(IQueryable source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            _from = source.ElementType;
            _to   = typeof(T);
            // start a new expression based on this
            _expression = Expression.Constant(this);
            _provider   = new FacadeTypeQueryProvider <T>(source);
            propertyMap = new Dictionary <string, string>();
        }