AutoMapperAssist
AutoMapperAssist copied to clipboard
CreateSet to reuse CreateInstance
Currently, both CreateSet and CreateInstance use mappingEngine.Map
I needed to intercept and log particular data when some mapping fails - i.e. some identifying property of the source. To get this, I had to override both methods.
If CreateSet in the select statement uses CreateInstance instead of engine.Map, the user would need to override only create instance.
The above applies if some custom stuff needs to happen for each element as well.
Please, let me know what you thing about this, and I'll create a pull request - it's just a 1 line change.
Cheers
You are right -- let's do it. :) I'll let you do it, that will be an easy pull request to take.