Closed randyburden closed 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.
This issue has been resolved with commit 0bd2d54c0213bd0a487bb178754a11ea1b83c5d1
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.