I have a destination object as
ArrayOfStudents[]
containing
StudentId, AddressInfo, MarksInfo
The source object is
public class Details
{
public Student[] Student;
)
The Student class contains
StudentId, AddressInfo, MarksInfo
I want to map Student[]
and ArrayOfStudents[]
I tried the following, but didn't work
Map.CreateMap<Student,ArrayOfStudents>()
.ReverseMap();
Map.CreateMap<Details.Student,ArrayOfStudents>()
.ReverseMap();
How should I be mapping this case?
It throws the following are unmapped error
StudentId, AddressInfo, MarksInfo