开发者

ASP.net MVC2 - Customize Metadata without using Custom Attributes

开发者 https://www.devze.com 2023-01-07 02:47 出处:网络
I\'m pretty new to MVC, I\'m trying to create a model that can be localized, but it doesn\'t seem like that would be possible given that I have to use a custom property attribute to define displayname

I'm pretty new to MVC, I'm trying to create a model that can be localized, but it doesn't seem like that would be possible given that I have to use a custom property attribute to define displayname and validation properties.

Is the开发者_高级运维re a way to dynamically create the model metadata attributes (DisplayName, UIHint, etc..) as opposed to having to define each one using custom property attributes? Ideally i'd like to keep my metadata in a table, xml file - something along those lines.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号