Automapper: IgnoreAllNonExisting

Created on 20 Oct 2016  路  3Comments  路  Source: AutoMapper/AutoMapper

Hi.
How to write IgnoreAllNoneExisting for Unmapped properties in Automapper 5.0.2 ?!
Thanks.
[Best Regards]

Most helpful comment

Use the MemberList in the CreateMap options. You're likely wanting to assert against either the Source side, or no member options at all:

CreateMap<Foo, Bar>(MemberList.Source);

All 3 comments

Use the MemberList in the CreateMap options. You're likely wanting to assert against either the Source side, or no member options at all:

CreateMap<Foo, Bar>(MemberList.Source);

Thank you so much for helping me out tonight.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings