Is there a way to configure AutoMapper to make it automatically map an entity to itself...
I want to avoid this basically:
Mapper.CreateMap<Company, Company>();
Mapper.CreateMap<Car, Car>();
....
Is there a way to configure AutoMapper to make it automatically map an entity to itself...
I want to avoid this basically:
Mapper.CreateMap<Company, Company>();
Mapper.CreateMap<Car, Car>();
....
You can make use of DynamicMap, without configuring CreateMap: