开发者

What is an active record?

开发者 https://www.devze.com 2022-12-11 07:04 出处:网络
What exa开发者_运维问答ctly is an active record?I hear this term used in Ruby post and nhibernate.Active record was initially a design pattern which involved wrapping database table operations in a cl

What exa开发者_运维问答ctly is an active record? I hear this term used in Ruby post and nhibernate.


Active record was initially a design pattern which involved wrapping database table operations in a class.

In a Rails context, however, it is also the proper name of a particular software component which implements the design pattern in Ruby for object-relational mapping, and the name of its associated module.


Active record is a design pattern where you map each table to a class. This means that each object created from this class represents a row in the table.

http://martinfowler.com/eaaCatalog/activeRecord.html

http://en.wikipedia.org/wiki/Active_record_pattern


It s a Design Pattern.

http://martinfowler.com/eaaCatalog/activeRecord.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号