예제 #1
0
        public override IQueryable <TElement> CreateQuery <TElement>(System.Linq.Expressions.Expression expression)
        {
            var contents = new ChildrenContentSet <TElement>(expression, ContextPath, SubTree, ChildrenDefinition)
            {
                CountOnlyEnabled   = this.CountOnlyEnabled,
                HeadersOnlyEnabled = this.HeadersOnlyEnabled
            };

            return((IQueryable <TElement>)contents);
        }
예제 #2
0
 public LinqChildrenEnumerator(ChildrenContentSet <T> queryable)
 {
     _isContent = typeof(T) == typeof(Content);
     _queryable = queryable;
 }