1

Closed

Mapping base interface property via derived interface (source) to class (destination) does not work...

description

I've got a property, Id, defined on an interface, IBase. I have a derived interface, IDerived, which inherits the Id property from IBase. Trying to map IDerived to a simple class with an Id property is failing (e.g. CreateMap<IDerived, Destination>()). I've attached a simple code file to expose this issue. Perhaps there is another part of the API that I need to exercise, but this seems like a standard mapping it should support by default.
 
Thanks - Jordan

file attachments

Closed Apr 4, 2009 at 11:10 PM by jbogard
Fixed in R52

comments

jordanterrell wrote Mar 24, 2009 at 5:45 PM

I've created a fix for this issue (see attached). Patch includes tests for fix - all tests pass (with exception of tests already being ignored).

jordanterrell wrote Mar 24, 2009 at 7:47 PM

I've created a better fix for this problem. Ignore file "Issue1450Fix.patch" - use "Issue1450FixV2.patch".

jbogard wrote Apr 4, 2009 at 10:59 PM

Thanks Jordan! I'll take a look at this one.

jbogard wrote Apr 4, 2009 at 11:10 PM

Your patch is in R52 - thanks!