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:


Popularne posty z tego bloga

Opinie na temat hostingu

Angular 2 and AOT (ahead of time) compilation

Validation using ASP.NET MVC + Kendo UI + jquery validate unobtrusive