Each one reflects on metadata from Active Record and Streamlined.
每个循环都反映活动记录和Streamlined的元数据。
Rails has a somewhat magical component called the Active Record.
Rails有稍微不可思议的组件,称为Active Record。
The second feature that simplifies debugging is the Active Record console.
能够简化调试的第二个功能是Active Record 控制台。
Each instance of an active record class is tied to a specific row in a database.
一个活动记录的每个实例都关系到数据库内的特定行。
But I can't find out how to do a union that returns an active record relation.
但我不能找出如何做到这一点返回一个有效记录关系的联合。
The Streamlined creators could have easily added customization data to Active Record.
Streamlined的创造者们原本可以轻易地把定制数据添加到了活动记录。
The streamlined directory allows additional metadata without pollution of Active Record.
streamlined目录支持额外的元数据,而不会污染活动记录。
Active Record is an object-relational mapping (ORM) that follows a standard ORM model.
Active Record是遵照了标准的or m模型的对象关系映射(object - relational mapping,ORM)。
Active Record users do not always need to change model objects as the data model changes.
Active Record用户并不总需要随着数据模型的改变而改变模型对象。
Let's take at look at a simple (and partial) implementation of the active record design pattern.
让我们先来看看活动记录设计模式的一个简单的部分实现。
You use the active record pattern to wrap relational database persistence methods in domain classes.
活动记录模式则可用来在域类内包装关系数据库持久性方法。
A cool feature often provided in active record design pattern implementations is dynamic finder methods.
活动记录设计模式实现内经常提供的一个很棒的特性是动态finder方法。
But I've been told that due to how Active Record works, it will be much easier if we use snake case.
但我被告知,由于有活动记录工作,如果我们用蛇的情况下就简单多了。
You can find a list of the Active Record model validations that can be defined in the class scope here.
在这里可以找到可以在类范围中定义的Active Record模型检验列表。
There are many Active Record updates in this release including the introduction of nested transactions.
该发布中有很多Active Record更新,包括嵌套事务的引入。
Next, create the classes in your app that will use the active record pattern to model a database table.
接下来,创建在应用程序,将使用该活动记录模式模型数据库表中的类。
The framework queries two sources of metadata: the Active Record model and a custom metadata file for each model object.
框架查询两个元数据源:活动记录模型和每个模型对象的定制元数据文件。
Your code interacts with the model objects, and Active Record creates the SQL to make the database do what you want.
你的程序码与model物件互动,然后Active Record产生SQL让资料库如你所写。
By default, Rails captures enough metadata within Active Record to build a surprisingly sophisticated default user interface.
默认情况下,Rails从活动记录内捕获到足够的元数据,构建复杂的用户界面。
Move away from Active Record into complete Domain Driven development, separating my data access away from the user object.
请远离活动记录到完整的领域驱动的开发,从用户对象分开我的数据的访问了。
view accessing the Active Record Trail model and looping through each trail in @trails with the <% for trail in @trails %> command.
您可以看到访问活动记录Trail模型并用 <%for trail in @trails %>命令在 @trails 中的每条路线上循环的 list.rhtml视图。
Active Record associates a class with a table and dynamically adds an attribute to each class for every column in the database.
Active Record将类和表关联起来,并按照数据库中的每一列给每个类动态地添加一个属性。
It does not currently include Active Record, the powerful domain model library on which Rails database model objects are built.
当前的版本还未包括Active Record,这是Rails数据库模型对象赖以为根本的强大的领域模型类库。
Active Record simply overrides method_missing and parses the method name at run time to determine whether the method name is valid.
Active Record越过method_missing并在运行时解析该方法名以确定该方法名是否有效。
The Streamlined approach lets a single place consolidate common view characteristics, much as Active Record does for persistence concerns.
Streamlined方法允许在一个地点合并常见视图特征,非常像活动记录为了持久性考虑而做的那样。
The second loop iterates through all relationships in the Active Record model and renders the appropriate partial for each relationship.
第二个循环在活动目录模型中的所有关系上迭代,并呈现每个关系的适当部分。
Through some nifty lexical analysis, Active Record is able to determine that the ORDER class will map to the ORDERS table in the database.
通过一些漂亮的词汇分析,Active Record能够判断出,Order类将映射到数据库中的ORDERS表。
Then it shows how PHP V5.3's LSB feature resolves those issues, while showing implementations of the singleton and active record design patterns.
然后展示了PHPV5.3的LSB特性,并给出了单例和活动记录设计模式。
For standard validations like checking the name, length and format of an attribute, we can make use of validations provided by Active Record.
对于标准的检验(比如检查属性的名称、长度和格式),可以使用Active Record提供的检验。
With ORM, you can work with software objects that represent your data and let the Active Record library take care of communicating with the database.
有了ORM,你可以操作代表资料的软体物件,然后Active record函式库将会处理与资料库的操作。
应用推荐