The idea of mapping objects together is quite simple. It’s like a “merge” the data from 2 objects into one single object. AutoMapper is one tool that helps you achieve this and I will explain some use cases for it.
There are a number of resources out there that describe how to do DropdownLists in MVC. In my opinion, none of them gave me stable, re-usable code that I could implement. This is the way that I do dropdownlists so hopefully it will help some of you.
At its essence, I have a ViewModel that extends the base class. If you are using an ORM (like Entity Framework or NHibernate), then your classes would probably already be created when you updated […]