EF4 POCO WCF Serialization problems (no lazy loading, proxy/no proxy, circular references, etc)

后端 未结 5 1473
慢半拍i
慢半拍i 2021-02-15 12:23

OK, I want to make sure I cover my situation and everything I\'ve tried thoroughly. I\'m pretty sure what I need/want can be done, but I haven\'t quite found the perfect combin

5条回答
  •  心在旅途
    2021-02-15 13:03

    hrmm, I may not have fully understood the issue, but everytime I run into circular references with WCF the answer is to change [DataContract] on the offending classes to [DataContract(IsReference = true)].

    This is a huge help compared to all the drek of messing with the contract resolvers that was needed pre WCF 3.5 SP1.

    Hope this helps.

提交回复
热议问题