private Expression ApplyPreprocessor(IQueryPreprocessor preprocessor, Session session, Expression query)
        {
            var preprocessor2 = preprocessor as IQueryPreprocessor2;

            return(preprocessor2 != null
        ? preprocessor2.Apply(session, query)
        : preprocessor.Apply(query));
        }
Esempio n. 2
0
 /// <summary>
 /// Determines whether this query preprocessor is dependent on the <paramref name="other"/> one.
 /// </summary>
 /// <param name="other">The other query preprocessor.</param>
 /// <returns>
 /// <see langword="true"/> if this query preprocessor
 /// is dependent on <paramref name="other"/>;
 /// otherwise, <see langword="false"/>.
 /// </returns>
 public virtual bool IsDependentOn(IQueryPreprocessor other)
 {
     return(false);
 }
Esempio n. 3
0
 public override bool IsDependentOn(IQueryPreprocessor other)
 {
     return(false);
 }
 public bool IsDependentOn(IQueryPreprocessor other)
 {
     return(other is ClosureQueryPreprocessor);
 }
Esempio n. 5
0
 public AsyncQueryPreprocessingDecorator(IAsyncQueryOperator <TEntity, QueryInput <TEntity> > queryOperator, IQueryPreprocessor <TEntity, QueryInput <TEntity> > preprocessor) : base(queryOperator, preprocessor)
 {
 }
 public override bool IsDependentOn(IQueryPreprocessor other)
 {
     return(other is PreprocessorA);
 }