Uh oh!
There was an error while loading. Please reload this page.
Improvements for Mapster Tool - #1011
Conversation
Create Explicit implementation from Mappers interfaces
This comment was marked as resolved.
This comment was marked as resolved.
@andrerav or emulation step
we get valid mapper : I thought this shouldn't work, but the assembly with this class compiles and the mapper itself works when cast to the interface.🤔 |
…ic interfaces with internal member and test refactoring
@andrerav If I'm not mistaken in the current implementation😃 Now mapper members are created correctly depending on the public/internal access modifiers specified for it or using for maping internal clases. And IsInternal continues to work as before, forcing the creation of an internal mapper with an internal members. |
1) property or method maks as public 2) property or method using only public clases 3) not using IsInternal atrribute
andrerav
commented
Aug 21, 2026
@DocSvartz Your approach is more general and solves both #399 and more. I closed my own PR, which had issues as you pointed out. |
DocSvartz
commented
Aug 24, 2026
@andrerav Perhaps it's worth adding Due to the use of the |
- Added feature to deterministically generate a valid namespace based on an invalid string
DocSvartz
commented
Aug 25, 2026
I'm merging this for the pre-release publish. If needed, it can be change in the release. |
Uh oh!
There was an error while loading. Please reload this page.
Improvements for generating mappers from interface :
[MapsterToolGeneratedMapper]new Mapster.Tool command
mapperoption:Note
By default helpers attributes generate in namespace
Mapster.Generated.Attributes.{Filename of assembly}specified in the-aoption.-H: "MyNameSpace"- create next namespaceMapster.Generated.Attributes.MyNameSpaceIf assembly filename or the string passed as a parameter
-His not a valid C# namespace, a additional namespace will be created automatically.