Ignore public/internal fields for NHibernate proxy

前端 未结 5 2155
灰色年华
灰色年华 2021-02-12 19:07

I have some entity types that I would like to lazy load. However, they have some internal (assembly) fields they expose, but are not used outside that class. These fields are co

5条回答
  •  再見小時候
    2021-02-12 19:44

    You might want to take a look at this page which gives an overview of using F# with Fluent NHibernate.

    Edit I just noticed your username. Am I correct in perhaps thinking that this is your blog? How foolish of me. It does seem to address your problem though, specifically "We start off by disabling LazyLoad because most of the properties are not virtual, and NHibernate will fail to validate the mapping. Instead, we explicitly LazyLoad things, like the Store reference."? Maybe I'm just misunderstanding the problem.

提交回复
热议问题