Applying Data Annotations to sub properties of the View Model in MVC?
应用数据注释子在MVC中的视图模型属性?
The default providers use data Annotations, a validation and metadata approach introduced in Preview 1.
默认的提供者使用了数据标记,这是在Preview 1中引入的验证和元数据表现方式。
This class contains properties for the username and password, and USES the data annotations to specify that both are required.
这个类含有用户名和口令的属性,并且使用数据注解来指定两者都是必须的。
应用推荐