We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello all.
We want to use mapster tool to auto-generate DTOs and Mappers. But we don't understand how we can declare custom mapping.
For example:
var builder = config.AdaptTo("[name]Dto", MapType.Map) .ForType<ProjectDocument>(cfg => { cfg.Map(src => src.ProjectXml, typeof(string), "ProjectXmlAsJson", srcValue => "some logic to return dest value"); });
We want to implement "some logic to return dest value". We need to serialize src value to string.
How can we do it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello all.
We want to use mapster tool to auto-generate DTOs and Mappers.
But we don't understand how we can declare custom mapping.
For example:
We want to implement "some logic to return dest value". We need to serialize src value to string.
How can we do it?
The text was updated successfully, but these errors were encountered: