But wait — where are your validations?
但是等等——验证在哪里?
The first step in any transaction is to perform business validations.
任何事务中第一步都是执行业务验证。
In this case, I simply add the validations for the individual fields.
这里只要为每个字段增加验证就够了。
Should any of the validations fail, an error message is returned to the caller.
如果任何验证失败,会向调用方返回错误消息。
For our Team Room example, say we wanted the following validations for a subject.
对于TeamRoom示例,假设我们希望对主题做以下检验。
To do this, you can define custom validations or use a set of standard validations.
为此,可以定义定制的检验或使用标准的检验集。
To do this, you can define custom validations or use a set of standard validations.
为此,可以定义定制的检验或使用标准的检验集。
应用推荐