Identifying NHibernate proxy classes

后端 未结 7 2021
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 06:53

I\'m not an NHibernate user; I write a serialization utility library. A user has logged a feature-request that I should handle NHibernate proxy classes, treating them the sa

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-28 07:25

    If you're writing a generic serialization utility library, I don't think you should handle that specific case at all. Your code should not have a dependency on NHibernate. What you should do is provide hooks that the client code can use to influence the operation of your library.

提交回复
热议问题