The advantages of application-level validation are as follows.
应用程序级验证的优点如下。
The disadvantages of application-level validation are as follows
应用程序级验证的缺点如下
To see the existing field-level validation automatically provided, go to the DataSet Designer, select a field from one of the DataTables and then go to the Properties window.
我们可以在数据集设计器(DataSet Designer)中看到已经存在的字段级验证,从某个DataTable中选择一个字段,然后在属性窗口中就可以找到了。
There is no way to override or turn off a test-level validation rule for a given request.
无法对给定的请求重写或关闭测试级验证规则。
In other words, adding a test-level validation rule is a shortcut for adding the same rule to every request.
换句话说,添加测试级验证规则是向每个请求添加相同规则的快捷方式。
Step 3: Adding Field-Level Validation to the DataRow classes.
第三步:给DataRow添加字段级验证。
Step 3: Adding Field-Level Validation to the DataRow classes.
第三步:给DataRow添加字段级验证。
应用推荐