本文介绍了NHibernate和数据库外键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在审查一个使用NHibernate的应用程序。当我调查数据库的数据结构时,没有外键。
如果应用程序管理实体之间的关系,数据库(MSSQL)是否设置了外键?
Hi,
I have been reviewing an application, that uses NHibernate. When I investigated the data structure of the database there were no foreign keys.
If the application manages the relationships between the entities should the database (MSSQL) have foreign keys set up?
推荐答案
这篇关于NHibernate和数据库外键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!