【问题标题】:does fluent nhibernate support lazy loading of propertiesfluent nhibernate 是否支持延迟加载属性
【发布时间】:2010-09-25 10:12:10
【问题描述】:

我有一个带有 photo 属性的 person 类,我想以惰性方式加载该属性。我看到regular nhibernate supports it here。这是否可以在流利的 nhibernate 中使用此功能

【问题讨论】:

    标签: fluent-nhibernate


    【解决方案1】:

    是的,只需将 .Lazy() 添加到 Fluent 映射即可。

    【讨论】:

    • 我在映射中看不到该属性。我确实看到了 .LazyLoad()
    猜你喜欢
    • 2013-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-29
    相关资源
    最近更新 更多