コード例 #1
0
 public InterceptedQuery(
     InterceptingProvider provider,
     Expression expression)
 {
     this._provider   = provider;
     this._expression = expression;
 }
コード例 #2
0
        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));
        }