什么是活动记录? [英] What is an active record?

查看:176
本文介绍了什么是活动记录?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

究竟是一个积极的记录?我听到这个词在Ruby中后期和NHibernate使用。

What exactly 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.

在Rails的情况下,但是,它也是一个特定的软件组件 它实现了在Ruby中的设计模式的的对象关系映射 ,及其相关的module

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.

这篇关于什么是活动记录?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆