Here is what I have where I hope someone can help us out:
class `Source`
{
string name { get; set; }
Inner { get; set; }
}
class `Inner`
{
Col A { get; set; }
Col B { get; set; }
}
class `Col` : IList<`ClassX`>, IEnunmerable<`ClassX`>
I need to map class Source to a destination type which has:
class `Dest`
{
string name { get; set; }
IList<`ClassY`> A { get; set;}
IList<`ClassY`> B { get; set;}
}
Now, ClassX
and class ClassY
share the same properties. ClassY
class has a subset of the Class X primitive properties with the exact same names and types.
Tried all kinds of mappings. Just the ClassX
to ClassY
map, with the collections, without and with any mapping get no mapping found between or missing configuration between Source
and Dest
AutoMapper.Mapper.Map<Source
, Dest
>(src);
Can someone help me out with the mapping? Thanks in advance.