MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.29k stars 327 forks source link

Copy class/property attributes or decorate generated class with custom attributes #575

Closed janiskulj closed 11 months ago

janiskulj commented 1 year ago

My source class looks like this:

[GenerateSerializer] public class Criteria { [Id(0)] public string Program { get; set; } }

Is it possible to configure generation of DTO to include those attributes?

andrerav commented 11 months ago

Please use Stack Overflow for usage question, thank you :)