Mapping Objects with AutoMapper
Posted by: K. Scott Allen,
on 19 Feb 2009 |
View original | Bookmarked: 0 time(s)
At the end of last year I finished a project that required a fair amount of object-to-object mapping. Unfortunately, Jimmy Bogard didnt release AutoMapper until this year, so I had to write a pile of object-to-object mapping goo on my own. AutoMapper is a convention based mapper. Lets say you have an object implementing an interface like thispublic interface IPatientDetailView
{
string Name { get; set; }
IEnumerable<Procedure> Procedures { get; set; }
// ...
}
but all...