Step 3: Adding Field-Level Validation to the DataRow classes.
第三步:给DataRow添加字段级验证。
Unfortunately the strongly-typed DataRow classes generated by Visual Studio do not use nullable types.
不幸的是,VisualStudio生成的强类型数据集(strongly-typed DataRow)并没有使用nullable values。
The class file actually contains a series of classes that inherit from and extend the DataSet, DataTable, DataRow, and EventArgs classes.
该类文件实际上包含一系列类,这些类继承并扩展了DataSet、DataTable、DataRow和eventargs类。
Therefore, manually putting the passed in values back into a DataRow helps ensure the validity of the data being passed to the BLL method.
因此,我们应该手工的验证一下传入的参数以保证传递给BLL方法的数据是有效的。
Therefore, manually putting the passed in values back into a DataRow helps ensure the validity of the data being passed to the BLL method.
因此,我们应该手工的验证一下传入的参数以保证传递给BLL方法的数据是有效的。
应用推荐