问题描述
让我说我对nhibernate一无所知,除了数据库方面.我正在做一个相当小的项目,我应该学习nhibernate吗?
Let me say i know NOTHING about nhibernate except its for databases. I am doing a fairly small project, should i learn nhibernate?
我想我有4个问题
在一个小项目中是否使用了休眠模式的过度杀伤力?我不应该使用nhibernate做什么?如果我有一个大型项目,如果表非常复杂,应该使用nhibernate吗?那么简单的表方案呢?
Is using a nhibernate overkill in a small project?What should i NOT use nhibernate for?if i have a large project should i use nhibernate if it has very complex tables? What about simple table schemes?
推荐答案
nhibernate是一个非常灵活的系统,可以与简单数据库或更复杂的数据库一起使用.真正的问题取决于您的项目是什么,而不是项目的大小,以及您要花费多少时间来建立一个好的设计.如果您的站点只是从数据库中拉出表,则将其列出在网页上以供查看和编辑. nhibernate势不可挡,您根本不需要它将创建的业务对象.另一方面,如果业务/域对象是项目的中心,那么您可以从使用nhibernate中受益.
nhibernate is a very flexible system and can be used with simple databases or more complex ones. The real question comes down to what your project is rather then if its big or small and how much time you want to spend setting up a good design. If your site is just pulling a table out of database listing it on the webpage for viewing and editing. nhibernate is over kill, you simply have no need for the business objects it will create. On the other hand if business/domain objects are the center point of your project then you can benefit from use of nhibernate.
这篇关于我应该在一个相当小的项目中使用nhibernate吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!