I need to create a mapping to an automaton.
Public class Source
{
public string Id;
public string Firstname;
public string Lastname;
}
Destination
Public class Destination
{
public string Id;
public Person[] persons;
}
Person class
Public class Destination
{
public string FirstName;
public string LastName;
}
I am trying to create a mapping
AutoMapper.Mapper.CreateMap<Source, Destination>();
but I don’t know how to match the name Firstname, Lastname with an array of the Person object
source
share