public RenderableQuery(RenderableQueryProvider provider, Expression expression) { this.provider = provider; if (expression == null) { throw new ArgumentNullException("expression"); } if (!typeof(IQueryable <T>).IsAssignableFrom(expression.Type)) { throw new ArgumentOutOfRangeException("expression"); } this.Expression = expression; }
public IQueryable <T> Resources <T>() { var queryProvider = new RenderableQueryProvider(this); return(new RenderableQuery <T>(queryProvider)); }
public RenderableQuery(RenderableQueryProvider provider) { this.provider = provider; this.Expression = Expression.Constant(this); }