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:

Comments

Popular posts from this blog

Entity Framework - inserting large number of rows

O dzisiejszych wiadomościach

Opinie na temat hostingu linuxpl.com