SlapperAutoMapper / Slapper.AutoMapper

Slapper.AutoMapper maps dynamic data to static types. Slap your data into submission!
MIT License
287 stars 76 forks source link

Does not properly map to types without identifiers #6

Closed randyburden closed 11 years ago

randyburden commented 11 years ago

Slapper.AutoMapper does not properly map to types without identifiers. When mapping to a list of types without any identifier, the library will only map the first result set producing only a list of 1 item.

randyburden commented 11 years ago

This is due to a regression bug from a previous release. Internally the library produces a hash of an instance's identifier values in order to cache it. When mapping to a type with no identifiers though, it is currently returning a hash of zero and is simply re-using the first mapped and cached instance upon mapping each subsequent item.

The end result is a list containing only the first mapped instance. This is definitely not the desired behavior.

randyburden commented 11 years ago

This issue has been resolved with commit 0bd2d54c0213bd0a487bb178754a11ea1b83c5d1