Simple replacement for AutoMapper
AutoMapper is great library, but it introduces another dependency and requires configuration. I try to stick to convention and use the same names in DTOs and domain objects. That is why I decided to write simple Object extension methods. Usage is simple:
There are also some other useful functions:
Not a big thing, but I copy this code from one project to another from time to time.
And here is source code: