darrencauthon/AutoMapperAssist — Issue #4: CreateSet to reuse CreateInstance
Author: sloncho
Created: 2011-12-29 21:46:37+00:00
State: open

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