Skip to content

Conversation

RCGuillaume
Copy link
Contributor

…tensions

@RCGuillaume RCGuillaume changed the title Added MapNestedProperties(x => x.PropertyName) to MappingExpressionEx… Added MapNestedProperties(x => x.PropertyName) to MappingExpressionExtensions Feb 27, 2018
{
var me = propertyExpression.Body as MemberExpression;
// a voir si on throw une exception?
if (me == null) return expression;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throw an ArgumentException

RCGuillaume and others added 2 commits February 27, 2018 15:13

public static IMappingExpression<TLinkedSource, TDestination> MapNestedProperties<TLinkedSource, TDestination>(
this IMappingExpression<TLinkedSource, TDestination> expression,
Expression<Func<TLinkedSource, object>> propertyExpression)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we rename propertyExpression to something like baseProperty or parentProperty?

@laurentlbm-rc laurentlbm-rc merged commit 242c1f6 into master Feb 27, 2018
@laurentlbm-rc laurentlbm-rc deleted the map-nested-properties branch February 27, 2018 21:03
RCGuillaume pushed a commit that referenced this pull request Feb 28, 2018
Added MapLinkedSource(x => x.PropertyName) to MappingExpressionExtensions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants