automapper in net framework
hi all, i tried to implement automapper using net framework 4.7.2, i tried in net core im able to convert from NoteItem to Note (same data retrieved from database), but when i implement this in net framework the noteResult give me 0 result, even tho there's no exception or error thrown, can anyone help advise what could be wrong?
5 Replies
i don't think it's standard to set up mappings between List<T> and List<X>
you'd do the mapping between T and X directly
then if you want to map a list, you just do it inside a .Select()
omg.. it works after i changed the mapping to T and X instead of List<T> to List<X>
previously i was following the mapping like this solution..
thank you!!
no prob
note that here they already have a mapping between Person and PersonView
and then they can perform the mapping between lists of those types
they don't set up the mapping between List<Person> and List<PersonView>
that's why they say
you don't need to repeat for Lists