学说中的存储库是什么? [英] What is repository in doctrine?
本文介绍了学说中的存储库是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道存储库在学说中意味着什么吗?
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屋!
查看全文