问题描述
我继承了一段称为NHibernateUtil.Initialize的代码.
I have inherited a piece of code which calls NHibernateUtil.Initialize.
我对NHibernate来说还比较陌生,还无法具体解决NHibernateUtil.Initialize的工作.
I am relatively new to NHibernate and have not been able to work out specifically what calling NHibernateUtil.Initialize does.
它的作用是什么?在什么情况下应称其为?
What does it do and in what scenarios should it be called ?
推荐答案
基本上,它将热切加载由nhibernate延迟加载或代理的域对象.
Basicaly it will eagerly load the domain objects that are lazily loaded or proxied by nhibernate.
从 NHibernate网站-lazy- loading-eager-loading 该引用位于文章的底部.
Have a look at this from the NHibernate website - lazy-loading-eager-loading the reference is in the bottom quarter of the article.
这篇关于NHibernateUtil.Initialize有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!