Expression SetValue(MappingStrategy strategy, ConversionStep conversion, Expression value) { strategy.ValueExpression = value; if (conversion != null) { var convert = conversion.BuildConversionExpression(strategy); strategy.ValueExpression = convert; } return(BuildSetTargetValueExpression(strategy)); }
public override Expression Apply(MappingStrategy strategy, ConversionStep conversion) { var get = Expression.Property(strategy.SourceExpression, sourceProperty); strategy.ValueExpression = get; if (conversion != null) { var convert = conversion.BuildConversionExpression(strategy); strategy.ValueExpression = convert; } return(strategy.ValueExpression); }
public override Expression Apply(MappingStrategy strategy, ConversionStep conversion) { var get = Expression.Property(strategy.SourceExpression, sourceProperty); strategy.ValueExpression = get; if (conversion != null) { var convert = conversion.BuildConversionExpression(strategy); strategy.ValueExpression = convert; } var property = Expression.Property(strategy.TargetExpression, targetProperty); return Expression.Assign(property, strategy.ValueExpression); }
public override Expression Apply(MappingStrategy strategy, ConversionStep conversion) { strategy.ValueExpression = strategy.SourceExpression; return(conversion.BuildConversionExpression(strategy)); }
Expression SetValue(MappingStrategy strategy, ConversionStep conversion, Expression value) { strategy.ValueExpression = value; if (conversion != null) { var convert = conversion.BuildConversionExpression(strategy); strategy.ValueExpression = convert; } return BuildSetTargetValueExpression(strategy); }
public override Expression Apply(MappingStrategy strategy, ConversionStep conversion) { strategy.ValueExpression = strategy.SourceExpression; return conversion.BuildConversionExpression(strategy); }