public InterceptedQuery( InterceptingProvider provider, Expression expression) { this._provider = provider; this._expression = expression; }
public static IQueryable <T> Intercept <T>( IQueryable <T> underlyingQuery, params Func <Expression, Expression>[] visitors) { InterceptingProvider provider = new InterceptingProvider( underlyingQuery.Provider, visitors ); return(provider.CreateQuery <T>( underlyingQuery.Expression)); }