Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created July 21, 2011 15:43
Show Gist options
  • Save pedroreys/1097464 to your computer and use it in GitHub Desktop.
Save pedroreys/1097464 to your computer and use it in GitHub Desktop.
AutoMapper Example
var contacts = new List<Dto>();
foreach(Employee employee in Employees)
{
Dto contact = new Mapper.Map<Employee, Dto>(employee);
contacts.Add(contact);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment