I\'ve got some problems using EF with AutoMapper. =/
for example :
I\'ve got 2 related entities ( Customers and Orders ) and they\'re DTO classes :
You should ignore mapping of some entity properties like so:
Mapper.CreateMap()
.ForMember(dest => dest.EntityKey, opt => opt.Ignore())
.ForMember(dest => dest.Licenses, opt => opt.Ignore())
.ForMember(dest => dest.AccessCodes, opt => opt.Ignore());
If you examine the message from the exception thrown by Automapper, you should see the entity properties that cannot be mapped and ignore them as above.