Content deleted Content added
One of these references does not resolve, one is literally a Stack Exchange question, one is some dude's blog, and the O'Reilly link barely has any context. It is not an appropriate comment for the start of the article without. Please see WP:NPOV. It is not "Currently regarded as an anti-pattern", at best you could say it is currently regarded as an anti-pattern _by some_. |
|||
Line 1:
In [[software engineering]], the '''active record pattern''' is an [[Architectural pattern (computer science)|architectural pattern]]
The active record pattern is an approach to accessing data in a [[database]]. A [[database table]] or [[View (database)|view]] is wrapped into a [[class (computer science)|class]]. Thus, an [[object (computer science)|object]] instance is tied to a single row in the table. After creation of an object, a new row is added to the table upon save. Any object loaded gets its information from the database. When an object is updated, the corresponding row in the table is also updated. The wrapper class implements [[accessor]] [[Method (computer programming)|methods]] or properties for each column in the table or view.
|