数据注释模型绑定器的意图
The article here mentions the use of Data Annotations Model Binder that is available here.
Does anyone know what it's intent is? To do DA validation, I don't need a special Model binder in MVC 2.0
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
ASP.Net MVC 的第一个版本不支持通过数据注释作为框架的一部分进行验证。链接的 Codeplex 代码的目的是专门允许使用面向属性的验证(需求量很大)作为第二个版本中实现的解决方案的权宜之计。
The first release of ASP.Net MVC didn't support validation via Data Annotations as part of the framework. The intent of the linked codeplex code was to specifically allow usage of attribute oriented validation (which was in high demand) as a stopgap to the solution that was implemented in the second release.
指定从编辑器表单中隐藏的字段。
specify fields for hiding from editor forms.