NHibernate Get objects without proxy

后端 未结 1 627
野趣味
野趣味 2020-12-16 03:22

I am using NHibernate(2.0.1.4) with NHibernate.Linq(1.0.0.4) to get Objects of the type Node from the Database.

When I get these objects, the last object of the coll

相关标签:
1条回答
  • 2020-12-16 03:44

    If your Proxy object implements INhibernateProxy, you can unproxy the object with NHibernate with the following code:

    iAmaSession.GetSessionImplementation().PersistenceContext.Unproxy(iAmaProxy)
    

    Hope this helps!

    0 讨论(0)
提交回复
热议问题