AutoMapper icon indicating copy to clipboard operation
AutoMapper copied to clipboard

Mapper won't map fields if they are not defined with ForMember

Open djmulder opened this issue 5 years ago • 1 comments

As default functionality I'd expect fields to be mapped if they are equal on source and destination, but this is not the case. Unless I spefically do a forMember per field all fields are ignored, even when using forAllMembers this happens.

djmulder avatar Jan 24 '20 11:01 djmulder

I noticed this behavior only when I add 'convertToType()' for strong typing of the result object, otherwise everything works just fine.

abouroubi avatar Jul 14 '20 09:07 abouroubi