Register to Better Coder! It's free.
Enjoy the premium features and succeed at every job interview.

BP28: Use object-to-object mapping library for DomainModel to ViewModel mapping

Copying one object to another is really teadious work. You can use AutoMapper or similar library to achive this. The big difference is that you won't need to write tens lines of codes just to copy values of all properties of object A to object B that has different type.

Comments

No Comments Yet.
Be the first to tell us what you think.

Download Better Coder application to your phone and get unlimited access to the collection of enterprise best practices.

Get it on Google Play