Пример #1
0
        IQueryable IDataServiceQueryProvider.GetQueryRootForResourceSet(ResourceSet resourceSet)
        {
            var contenTypeDefinition = ((ResourceType)resourceSet.CustomState).Name;
            var underlyingQueryable  = this._queryContext.Query(contenTypeDefinition);
            var visitor = new ODataServiceInterceptedQueryVisitor(this as IDataServiceQueryProvider);

            return(ODataServiceInterceptedQueryProvider.CreateQuery(underlyingQueryable, visitor));
        }
 internal ODataServiceInterceptedQueryProvider(IQueryProvider underlyingQueryProvider, ODataServiceInterceptedQueryVisitor visitor)
 {
     this._underlyingProvider = underlyingQueryProvider;
     this._expressionVisitor  = visitor;
 }