用Fluent NHibernate默认的行为来延迟加载HasMany< T>收藏? [英] Is the default behavior with Fluent NHibernate to lazy load HasMany<T> collections?

查看:103
本文介绍了用Fluent NHibernate默认的行为来延迟加载HasMany< T>收藏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我设置流畅的映射时,集合的默认值是什么?我需要明确地将它们设置为延迟加载,或者是默认的?

解决方案

一天内在与NHibernate的标准,这是延迟加载是默认启用的一切。


when I am setting up my fluent mappings, what is the default for collections? Do I need to explicitly set them as lazy-load, or is that the default?

解决方案

Note this is changed as of current day to be inline with NHibernate standards which is lazy loading is enabled by default for everything.

这篇关于用Fluent NHibernate默认的行为来延迟加载HasMany< T>收藏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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