Skip to content

Improvements for Mapster Tool - #1016

Merged
DocSvartz merged 9 commits into
MapsterMapper:developmentfrom
DocSvartz:feat-MapsterTool--publish
Aug 25, 2026
Merged

Improvements for Mapster Tool#1016
DocSvartz merged 9 commits into
MapsterMapper:developmentfrom
DocSvartz:feat-MapsterTool--publish

Conversation

@DocSvartz

Copy link
Copy Markdown
Contributor

Improvements for generating mappers from interface :

  1. Added support mappers that use internal methods or properties.
  2. Added support for marking generated mapper attributes [MapsterToolGeneratedMapper]
    new Mapster.Tool command mapper option:
    • -h: true - Create a mapper with helpers attributes
    • -H: - add additional namespace for generated helpers attributes

Note

By default helpers attributes generate in namespace Mapster.Generated.Attributes.{Filename of assembly} specified in the -a option.
-H: "MyNameSpace" - create next namespace Mapster.Generated.Attributes.MyNameSpace
If assembly filename or the string passed as a parameter -H is not a valid C# namespace, a additional namespace will be created automatically.

Create Explicit implementation from Mappers interfaces
…ic interfaces with internal member
and test refactoring
1) property or method maks as public
2) property or method using only public clases
3) not using IsInternal atrribute
- Added feature to deterministically generate a valid namespace based on an invalid string
@DocSvartz
DocSvartz merged commit 0507d0a into MapsterMapper:developmentAug 25, 2026
4 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mapster tool generates non-public interface method/property implementation

1 participant

@DocSvartz