Not really sure why AssertConfigrationIsValid is throwing this result; the only properties that aren't mapped are read-only or inherently mapped, and I would have thought that AutoMapper would have ignored the read only ones anyway. The code is mapping the objects correctly as it is or we wouldn't be getting any results.
in fact, the error message you pasted above would indicate that AutoMapper can't find any missing properties on the type being mapped. This may be an issue for the AutoMapper forum/issue tracker.
Missing ingnore ruels in AutoMapper
After install package, when I use Mapper.AssertConfigurationIsValid(); for automapper configuration.
Hi Yakov,
Not really sure why AssertConfigrationIsValid is throwing this result; the only properties that aren't mapped are read-only or inherently mapped, and I would have thought that AutoMapper would have ignored the read only ones anyway. The code is mapping the objects correctly as it is or we wouldn't be getting any results.
in fact, the error message you pasted above would indicate that AutoMapper can't find any missing properties on the type being mapped. This may be an issue for the AutoMapper forum/issue tracker.
Could you please post an issue here: https://github.com/AutoMapper/AutoMapper/issues as I don't believe read-only properties should be mapped.
Regardless, I'll map the readonly properties to ignore for anyway. Will be in the next release.
Thanks,
- Rob.
is working on a reply...