IgnoreNonMapped is ignored when using RequireDestinationMemberSource
I have the following config:
var config = new TypeAdapterConfig()
{
// other configuration here
RequireDestinationMemberSource = true,
};
// other mappings here
config.NewConfig<DataRow, Document>()
.Map(d => d.Id, dr => dr.Field<int>("Id"))
.IgnoreNonMapped(true);
When I now use config.Compile() to check the configurations I get an exception that on mapping DataRow to Document all properties (except Id of course) where neither configured to be mapped or ignored. My workaround for now is to use .RequireDestinationMemberSource(false) just for this one mapping, but shouldn't IgnoreNonMapped still work as inteded when using RequireDestinationMemberSource = true?
@andrerav
@andrerav does this project participate in hacktoberfest ? There are some issues that the community could help out with.
UP
That is still happening.