Is the default behavior with Fluent NHibernate to lazy load HasMany<T> collections?

亡梦爱人 提交于 2019-12-19 17:14:40

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/316264/is-the-default-behavior-with-fluent-nhibernate-to-lazy-load-hasmanyt-collectio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!