Extensions for AutoMapper for .NET
For each Mapper configuration call one of the methods in the AutoMapperExtender class.
To map a class with fewer or more properties to another:
Mapper.CreateMap<A, B>()
.IgnoreExtraProperties();
Suppose you want to map from one object to another, but the bulk of the mapping is from a property of the source object.
To map from a property of the source object:
Mapper.CreateMap<A, B>()
.FromSourceProperty(src => src.C);
This will map property C to object A