示例#1
0
        private ComparisonReducer generateComparisonReducer()
        {
            var propInfo   = new PropertyInfoProvider();
            var propExpFac = new PropertyExpressionFactory(propInfo);

            return(new ComparisonReducer(
                       new ComparisonProcessor(),
                       new PropertyProcessor(propInfo, new PropertyExpressionFactory(propInfo)),
                       new ValueProcessor(),
                       new NotNullExpressionProcessor(propExpFac)
                       ));
        }
示例#2
0
        private static ILogicalReducer BuildLogicalReducer()
        {
            var propertyInfo   = new PropertyInfoProvider();
            var propertyExpFac = new PropertyExpressionFactory(propertyInfo);

            return(new LogicalReducer(
                       new ComparisonReducer(
                           new ComparisonProcessor(),
                           new PropertyProcessor(propertyInfo, propertyExpFac),
                           new ValueProcessor(),
                           new NotNullExpressionProcessor(propertyExpFac)),
                       new UnaryProcessor(),
                       new LogicalProcessor()));
        }