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)); }
public TDerived FilterSource <T>(ValuesFilter <T> valuesFilter) { return((TDerived)base.FilterSource <T>(valuesFilter)); }
public TDerived FilterDestination <T>(ValuesFilter <T> valuesFilter) { return((TDerived)base.FilterDestination <T>(valuesFilter)); }
public IMappingConfigurator FilterSource <T>(ValuesFilter <T> valuesFilter) { _sourceFilters.Add(new[] { typeof(T) }, valuesFilter); return(this); }
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))); }