protected override Expression GetFilterExpression(Expression sourceValue, ref bool hasFixedValueOperands)
            {
                var conditionReplacements = FixedSizeExpressionReplacementDictionary.WithEqualKeys(_filterConditions.Count);

                foreach (var filterCondition in _filterConditions)
                {
                    conditionReplacements.Add(
                        filterCondition.Filter,
                        filterCondition.GetConditionReplacement(sourceValue, ref hasFixedValueOperands));
                }

                return(ValuesFilter.Replace(conditionReplacements));
            }
Example #2
0
 public TDerived FilterSource <T>(ValuesFilter <T> valuesFilter)
 {
     return((TDerived)base.FilterSource <T>(valuesFilter));
 }
Example #3
0
 public TDerived FilterDestination <T>(ValuesFilter <T> valuesFilter)
 {
     return((TDerived)base.FilterDestination <T>(valuesFilter));
 }
Example #4
0
 public IMappingConfigurator FilterSource <T>(ValuesFilter <T> valuesFilter)
 {
     _sourceFilters.Add(new[] { typeof(T) }, valuesFilter);
     return(this);
 }
Example #5
0
 public IMappingConfigurator FilterDestination <T>(ValuesFilter <T> valuesFilter)
 {
     _destinationFilters.Add(new[] { typeof(T) }, valuesFilter);
     return(this);
 }
 protected override Expression GetFilterExpression(Expression sourceValue, ref bool hasFixedValueOperands)
 {
     return(ValuesFilter.Replace(
                _filterCondition.Filter,
                _filterCondition.GetConditionReplacement(sourceValue, ref hasFixedValueOperands)));
 }