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.
这个类含有用户名和口令的属性,并且使用数据注解来指定两者都是必须的。
Preview 2 builds on the features of Preview 1, adding client-side validation, streamlined support of Areas, and abstractions of data Annotations validation and metadata providers.
Preview 2在之前的基础上增加了客户端验证,精简的Are a支持,以及抽象的数据标记(Data Annotations)验证和元数据提供者等功能。
应用推荐