Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yakov Lebski 550 posts 2114 karma points
    Aug 02, 2014 @ 21:35
    Yakov Lebski
    0

    Missing ingnore ruels in AutoMapper

    After install package, when I use Mapper.AssertConfigurationIsValid(); for automapper configuration. enter image description here

  • Robert Foster 459 posts 1820 karma points MVP 2x admin c-trib
    Aug 03, 2014 @ 07:33
    Robert Foster
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft