public DynamicSortingService(IPropertyOrderExpressionBuilderLocator <TEntity> orderExpressionBuilderLocator,
                                     IPropertyAccessStrategyChainBuilder propertyAccessStrategyBuilder)
        {
            _orderExpressionBuilderLocator = orderExpressionBuilderLocator;

            _propertyAccessStrategy = propertyAccessStrategyBuilder.Build();
        }
        public FilterExpressionBuilder(IPropertyAccessStrategyChainBuilder propertyAccessStrategyBuilder,
                                       IValueExpressionService valueExpressionService,
                                       IOperatorExpressionFactoryService operatorExpressionFactoryService,
                                       IFilterUnionExpressionFactoryService filterUnionExpressionFactoryService)
        {
            _valueExpressionService              = valueExpressionService;
            _operatorExpressionFactoryService    = operatorExpressionFactoryService;
            _filterUnionExpressionFactoryService = filterUnionExpressionFactoryService;

            _propertyAccessStrategy = propertyAccessStrategyBuilder.Build();
        }
示例#3
0
 public void SetStrategy(IPropertyAccessStrategy strategy)
 {
     _strategy = strategy;
 }
 public PropertyOrderExpressionBuilder(IPropertyAccessStrategyChainBuilder propertyAccessStrategyBuilder)
 {
     _propertyAccessStrategy = propertyAccessStrategyBuilder.Build();
 }