示例#1
0
            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;
            }
示例#2
0
        public IQueryable <T> Resources <T>()
        {
            var queryProvider = new RenderableQueryProvider(this);

            return(new RenderableQuery <T>(queryProvider));
        }
示例#3
0
 public RenderableQuery(RenderableQueryProvider provider)
 {
     this.provider   = provider;
     this.Expression = Expression.Constant(this);
 }