什么是学说中的存储库? [英] What is repository in doctrine?

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

问题描述

我想知道知识库在教义中的含义是什么?

I wonder what a repository means in doctrine?

谁能解释一下?

推荐答案

许多ORM(对象关系映射器)使用的术语中的存储库,教义只是其中之一.

A repository in a term used by many ORMs (Object Relational Mappers), doctrine is just one of these.

这意味着可以访问我们的数据的地方,一个数据存储库.这是为了将其与数据库区分开来,因为存储库不关心其数据的存储方式.

It means the place where our data can be accessed from, a repository of data. This is to distinguish it from a database as a repository does not care how its data is stored.

请参阅 Martin Fowlers企业应用程序架构模式"中的 存储库模式.

See the Repository Pattern from Martin Fowlers "Patterns of Enterprise Application Architecture".

这篇关于什么是学说中的存储库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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