![]() RegistrationNumber = automobile.RegistrationNumber, ![]() public Car ConvertAutomobileToCar( Automobile automobile) ![]() The developers can get rid of the explicit conversions as implemented in the following code. Once the mapping is created then the source model object can be converted to a destination model object with ease and with less cluttered code. About AutoMapperĪutoMapper is an external component that helps in creating a mapping between a source and destination model types. In this article I will explain the AutoMapper component and how to use it in an Asp.Net MVC application with few source code samples.
0 Comments
Leave a Reply. |