Download for Windows Premium
Publiciteit
ActiveRecord
Active Record
ActiveRecord
Zur Lösung dieser Probleme können wir ActiveRecord nutzen.
To solve these problems, we can use Active Record.
Wir haben schon gesehen, wie wir ActiveRecord (AR) nutzen können, um Daten einer einzelnen Tabelle auszulesen.
We have already seen how to use Active Record (AR) to select data from a single database table.
ActiveRecord unterstützt nun lazy loading mit dynamischen Abfrageoptionen.
Enhanced active record by supporting lazy loading with dynamic query options.
Mithilfe der ActiveRecord -Eigenschaft können Sie den aktiven Datensatz in einer Seriendruck-Datenquelle festlegen.
Use the ActiveRecord property to set the active record in a mail merge data source.
In dieser Folge werden wir einige der neuen Features betrachten. Wir beginnen mit ActiveRecord, der jetzt ein neues Interface anbietet, um Datenbankanfragen durchzuführen.
In this episode we'll begin looking at some of its new features, starting with ActiveRecord which provides a new interface for performing database queries.
Tipp: ActiveRecord benötigt einige Metadaten über Tabellen, um zum Beispiel die Spalteninformationen zu ermitteln. Das Lesen und Analysieren dieser Daten braucht Zeit.
Tip: Because Active Record relies on the metadata about tables to determine the column information, it takes time to read the metadata and analyze it.
Grundlegend sieht man sich beim übersetzen von ActiveRecord Queries in das neue Rails 3 Format den Hash mit Optionen an, die an find übergeben werden und ersetzt jeweils einen Teil mit einem äquivalenten Methodenaufruf.
The basic approach to converting an ActiveRecord query to the new Rails 3 format is to look at the hash of options that's being passed to find and to replace each item in the hash with an equivalent method.
Hinweis: Beim Festlegen der Regeln für einen ActiveRecord können wir eine spezielle Option on verwenden.
Note: When specifying rules for an active record model, we can use a special option named on.
Yii implementiert zwei Model-Arten: FormModel (Formularmodel) und ActiveRecord.
Yii implements two kinds of models: Form models and active records.
Da ActiveRecord eine solche Konvertierung einsetzt, sind die meisten Rails Anwendungen von diesem Fehler betroffen.
ActiveRecord relies on this method, so most Rails applications are affected by this.
In diesem Beispiel handelt es sich bei mongoid um eine Objektzuordnung für MongoDB Wie viele andere für Rails gebaute Datenbank- ActiveModel erbt auch ActiveModel die gleiche Methode wie ActiveRecord, die eine gemeinsame Schnittstelle für viele Funktionen wie Validierungen, Rückrufe, Übersetzungen usw. bietet.
In this example, mongoid is an object mapping for MongoDB and - as many other database gems built for rails - it also inherits from ActiveModel the same way as ActiveRecord, which provides a common interface for many features such as validations, callbacks, translations, etc.
Das war's für diese Episode über ActiveRecord Queries in Rails 3!
That's it for this episode on using ActiveRecord queries in Rails 3.
ActiveRecord ist ein objektrelationaler Mapper, der Teil des Webentwicklungs-Frameworks "Ruby on Rails" ist.
ActiveRecord is an object-relational mapper, popularized by being part of the Ruby on Rails web development framework.
Er zijn geen resultaten gevonden voor deze term.

Synoniemen voor ActiveRecord in het Duits

Publiciteit

Resultaten: 22. Exact: 22. Verstreken tijd: 19 ms.