mapperly icon indicating copy to clipboard operation
mapperly copied to clipboard

IncludedMembers on method level

Open ni507 opened this issue 1 year ago • 0 comments

With https://github.com/riok/mapperly/pull/732 IncludedMembers has been implemented. This can currently only be set at class level in the mapper configuration.

An IncludedMembersAttribute should be created to enable this on method level.

[Mapper(IncludedMembers = MemberVisibility.AllAccessible)]
public partial class FruitMapper
{
    [IncludeMembers(MemberVisibility.All)]
    public partial FruitDto ToDto(Fruit source);
}

ni507 avatar Oct 26 '23 13:10 ni507