NHibernate and WCF Serialization(Unidirectional)

后端 未结 1 1962
情话喂你
情话喂你 2020-12-20 05:38

Object graph for type \'[type]\' contains cycles and cannot be serialized if reference tracking is disabled.

I have a simple class hierarchy setup using NHi

1条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-20 06:22

    It is best practice to protect your domain and not let it go across process boundaries. I would recommend a DTO implementation to abstract your domain. There are other benefits as well including that you can provide an intention revealing interface(clients shouldn't have to think about how to use the service).

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