How did I solve the Json serializing circular reference error?

后端 未结 3 1650
小鲜肉
小鲜肉 2020-12-11 15:58

There is post here that asks how to solve the circular reference error when returning a serialized object via EF4 CTP5. I ran into this same problem with a WCF web forms pr

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-11 16:23

    Quick note: if you still face the exception remember getting rid of

    .Include("NestedObject")

    This way parent-child relationship will be gone as well as the exception

提交回复
热议问题