Skip to content
New issue

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

能否支持 CodeField -> RenderField 一对多的关系? #14

Open
YaoaY opened this issue Aug 26, 2021 · 0 comments
Open

能否支持 CodeField -> RenderField 一对多的关系? #14

YaoaY opened this issue Aug 26, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@YaoaY
Copy link

YaoaY commented Aug 26, 2021

有时候一个 code ,可能会用来渲染多个不同的字段:
比如:

[
 {code:1,name:'一级',color:'红色'},
 {code:2,name:'二级',color:'蓝色'}
]

根据以上数据分别定义了字典LevelNameLevelColor ,略...

[DictionaryCodeField("LevelName")] // <-- Color 怎么办
public string Code {get;set;}

[DictionaryCodeField("LevelName")]
public string Name {get;set;}

[DictionaryCodeField("LevelColor")]
public string Color {get;set;}
@real-zony real-zony self-assigned this Sep 8, 2021
@real-zony real-zony added the enhancement New feature or request label Sep 8, 2021
@real-zony real-zony added this to the 1.2.0 milestone Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants