I want to map from entity to model
Entity:
public class FileEntity
{
public IList<TagEntity> Tags { get; set; }
}
Model:
public class FileModel
{
public IList<TagModel> Tags { get; set; }
}
The fields in TagEntity and TagModel are all the same
How should I mapper that?
This should be as simple as:
AutoMapper will automatically map the lists without you having to do anything extra.