Ignore public/internal fields for NHibernate proxy

前端 未结 5 1175
鱼传尺愫
鱼传尺愫 2021-02-12 19:20

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:38

    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

提交回复
热议问题