Ignore public/internal fields for NHibernate proxy

前端 未结 5 2150
灰色年华
灰色年华 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:49

    Just set the lazy property to false,

     
    

    you can read more in: Must Everything Be Virtual With NHibernate? - http://davybrion.com/blog/2009/03/must-everything-be-virtual-with-nhibernate/

    Ofir, www.TikalK.com

提交回复
热议问题