Skip to content

Conversation

a157147899
Copy link

如题,现有的Formatters因受限于Attribute parameter type的限制不能进行灵活的自定义处理操作(传入attribute的值只能是primitive类型),在DataParser中提供一个Hook能很好的解决这个问题。

使用场景:比如我想自定义生成ID属性,规则是属性值+时间戳

@a157147899
Copy link
Author

发现已提供“ConfigureDataObject”方法供重写实现此类需求。😊

@a157147899 a157147899 closed this Oct 25, 2021
@zlzforever
Copy link
Collaborator

是的:)

Sign up for free to 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.

2 participants