Skip to content

Conversation

spydacarnage
Copy link

@spydacarnage spydacarnage commented Jul 8, 2019

  • Added code to TypeMapFactory+ConstructorMap to check for valid ForCtorParam entries to match against a Constructor

Fixes #3159.

 - Added code to TypeMapFactory+ConstructorMap to check for valid ForCtorParam entries to match against a Constructor

#3159
@dnfclas
Copy link

dnfclas commented Jul 8, 2019

CLA assistant check
All CLA requirements met.

@lbargaoanu lbargaoanu changed the title Summary of changes: ForCtorParam MapFrom any expression Jul 9, 2019
@lbargaoanu
Copy link
Contributor

I'm not sure this is the right approach. It seems better to try and move the MapDestinationCtorToSource code in MappingExpressionBase.Configure where the configuration is available.

@spydacarnage
Copy link
Author

spydacarnage commented Jul 9, 2019 via email

@lbargaoanu
Copy link
Contributor

What I'm saying is that the code that chooses the constructor should be in Configure.

@spydacarnage
Copy link
Author

spydacarnage commented Jul 9, 2019 via email

… from TypeMapFactory to MappingExpressionBase.Configure.
@lbargaoanu lbargaoanu changed the title ForCtorParam MapFrom any expression WIP ForCtorParam MapFrom any expression Jul 9, 2019
@lbargaoanu lbargaoanu added this to the v.Next milestone Jul 10, 2019
@lbargaoanu
Copy link
Contributor

Closing as stale. But feel free to open a new one when it's ready.

@lbargaoanu lbargaoanu closed this Jul 22, 2019
@spydacarnage
Copy link
Author

@lbargaoanu - the update I put up 2 weeks ago was that "I believe it is ready" state - I thought you adding the milestone was an implicit acceptance.

@lbargaoanu
Copy link
Contributor

This PR is not even ready for review.

@spydacarnage
Copy link
Author

Not sure what happened - it went through all the checks and passed...

Have created #3169 as a second attempt.

@lock
Copy link

lock bot commented Aug 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MapFrom doesn't resolve constructor parameters that have no matching source property
3 participants