Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IncludedMembers on method level #844

Open
ni507 opened this issue Oct 26, 2023 · 0 comments
Open

IncludedMembers on method level #844

ni507 opened this issue Oct 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ni507
Copy link
Contributor

ni507 commented Oct 26, 2023

With #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 ni507 added the enhancement New feature or request label Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant