Closed BlueInt32 closed 8 years ago
Great feature @BlueInt32
I'm working to add this feature....
thanks!
Hi @BlueInt32, check the last commit...
This is great, thanks ! Now I'm a bit worried about the fact that the issue's hypothesis is based on value type boxing which is a bad practice in terms of performance. I guess this could explain why slapper did not handle this case in the first place.
Yes!
Now Slapper support collections of primitive types, but is your responsibility think about cost. (boxing & unboxing) I would continue refactoring this feature in the future...
The best practice is to encapsulate primitive types inside objects to best performance.
Thanks
It does not seem to be possible to map a collection of value types. The "" syntax cannot be used to map.. say a collection of Int32 values right away because no syntax exists to reference the listed type values directly. Next is an example of what I want to do, using the "" syntax and an imaginary "$" notation to reference the value directly. But maybe I'm missing something ? A corresponding stack overflow question can be found here : https://stackoverflow.com/questions/34840171/how-to-map-ilistint-with-slapper-automapper# Thanks.