Listing 10. Validations in app \ models \ subject.rb.
清单10.app \models \subject . rb中的检验。
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.
我仍然需要写明所有的验证器和初始迁移。
Invite customers to do targeted usability evaluations and validations.
邀请客户进行目标系统可用性的评估和确认。
But the consumer needs to know immediately whether basic validations succeeded.
但使用者需要立即知道基本验证是否成功。
Validations performed include the product details, address, and payment details.
所执行的验证包括产品详细信息、地址和支付详细信息。
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.
使用已存在的确认器支持再使用,并使得向定制域添加简单的确认器变得更加容易。
You can find a list of the Active Record model validations that can be defined in the class scope here.
在这里可以找到可以在类范围中定义的ActiveRecord模型检验列表。
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.
这听起来与单元测试很相像,不过它意味着现在已经可以在构建期间执行这些验证了。
As you saw in Figure 1, conversion occurs in the apply request values phase and validation in the process validations phase.
正如图1所示,转换发生在应用请求值阶段,而验证发生在处理验证阶段。
In the field Properties window, select the field validations TAB to create field validations for the data entered into the form.
在FieldProperties窗口中,选择FieldValidations选项卡为输入表单的数据创建字段验证。
Many ActiveRecord validations directly correspond with database constraints, and DrySQL generates such validations automatically.
许多ActiveRecord校验都是与数据库的约束相对应的,并且DrySQL会自动生成校验。
If all the validations are passed, a JAAS-based security context is created, including the identity of the user in a JAAS subject.
如果通过了所有的验证过程,那么将创建基于JAAS的安全上下文,包括JAAS主题中用户的标识。
This validation allows only alphanumeric and space characters and filters the rest. You can further strengthen validations by adding.
该验证只允许字母、数字和空格符,并会过滤剩余内容。
The default metadata source for validations is annotations, but the developers can extend the meta-data through the use of XML descriptors.
其默认的元数据源是注解,但开发者可以通过XML描述符对其进行扩展。
应用推荐