But wait — where are your validations?
但是等等——验证在哪里?
Listing 10. Validations in app \ models \ subject.rb.
清单10 . app \ models \ subject . rb中的检验。
This is the first entry point for your own unit validations.
这是单元确认器的首个进入点。
Validations methods: validate data conforming to business rule.
验证方法:验证数据是否符合业务规则。
Some data validations should live with the data, some shouldn't.
一些数据验证应该和数据存放在一起,而另一些则不应该。
I still had to specify all my validations and initial migrations.
我仍然需要写明所有的验证器和初始迁移。
The first step in any transaction is to perform business validations.
任何事务中第一步都是执行业务验证。
In this case, I simply add the validations for the individual fields.
这里只要为每个字段增加验证就够了。
Invite customers to do targeted usability evaluations and validations.
邀请客户进行目标系统可用性的评估和确认。
But the consumer needs to know immediately whether basic validations succeeded.
但使用者需要立即知道基本验证是否成功。
Should any of the validations fail, an error message is returned to the caller.
如果任何验证失败,会向调用方返回错误消息。
Validations performed include the product details, address, and payment details.
所执行的验证包括产品详细信息、地址和支付详细信息。
For our Team Room example, say we wanted the following validations for a subject.
对于Team Room示例,假设我们希望对主题做以下检验。
To do this, you can define custom validations or use a set of standard validations.
为此,可以定义定制的检验或使用标准的检验集。
When an application applies those constraints on data, the constraints become validations.
应用程序将这些约束应用于数据时,约束也就成了验证。
Unfortunately (or fortunately), this JSR focuses on constraint declarations and validations.
不幸的是(或许也是幸运的),这个JSR侧重于约束声明和验证。
Additional code is required to implement required validations that augment the schema checks.
需要额外的代码来实现增加所需模式检查的验证。
These validations are important to avoid putting an unnecessary load on the backend database.
对于避免在后端数据库上执行不必要的装载,这些检验非常重要。
CAMV supports creating validations rules for providing Warning messages in addition to Errors.
CAMV支持创建错误和警告消息的验证规则。
These will be set if the user posted data that failed validations against the Recipe model object.
如果用户发布的数据没有通过Recipe模型对象的验证就会设置这些消息。
As for validation, it ensures data contains the expected content. Here are two typical validations.
至于验证,它用于确保数据包含所期望的内容。
As you can see, you can add complex validations that affect the whole topology with all of its units.
正如您所看到的那样,您可以添加复杂的确认器,它会影响到带有所有单元的整个拓扑。
Using existing validators enables reuse and makes adding simple validations to your custom domain easy.
使用已存在的确认器支持再使用,并使得向定制域添加简单的确认器变得更加容易。
As well, ActiveRecord associations and validations are redundant specifications of database constraints.
同样,ActiveRecord的关联和校验对于数据库的约束定义来说也是一种冗余。
Some constraints should be validated after others, and not validated unless the previous validations pass.
s一些约束应该在另外一些之后再验证,而且只有前面的验证通过才能进行验证。
In the future, UML profiles and associated model validations may emerge in order to support visual modeling.
将来,为了支持可视化的建模,可能会出现UM l概要文件,以及相关的模型验证。
To add additional validations or remove existing ones, redistribute the compiled CAM templates (.cxx files).
要添加额外验证或移除现有验证,只需重新分配编译过的CAM模板(. cxx文件)。
After the validations, the underlying systems are updated, again either in parallel as shown, or in sequence.
验证之后,将更新基础系统,按图中所示并行进行,或按顺序进行。
Rails's core components-restful routes, relationships, validations, templates, and database abstractions-persist.
Rails的核心组件始终存在,即RESTful路径、关系、验证、模板和数据库抽象化。
While this sounds very similar to unit testing, what's news is that those validations can be performed at build time.
这听起来与单元测试很相像,不过它意味着现在已经可以在构建期间执行这些验证了。
-
data validation
数据有效性
-
verification and validation
[计]检验和确认
-
cross validation
交叉验证,交叉确认;交互效度分析
-
validation test
确认试验;证实测定