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>(); }
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>(); }