NHibernateUtil.Initialize有什么作用? [英] What does NHibernateUtil.Initialize do?

查看:84
本文介绍了NHibernateUtil.Initialize有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一段称为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有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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