I've got a class called Customer that has several properties, i.e. FirstName, LastName, City, State
The Customer class has some data annotations to fix naming and other things. (This class is being used as a model for MVC)
I've got a Linq query against an EF5 entity that has those same fields. Is there a simple way to map the query results to the class other than:
customer.FirstName = item.FirstName;
customer.LastName = item.LastName;
customer.City = item.City;
etc.....
I have run across references to automapper (and others) but was wondering of there are other options based on the identical nature of the results and class?