Avoiding Circular Reference for Entity in JSON Serialization(blogs.microsoft.co.il)

submitted by gilfgilf(2139) 7 months, 7 days ago

One problem that I was facing yesterday while working on an ASP.NET MVC application was a JSON serialization issue. The problem was a circular reference caused by the DataContractJsonSerializer because of relations between the entity and other entities. In this post I’ll show you how you can use a simple workaround in order to avoid the problem.

1 comment |category: |Views: 43

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by vijaystvijayst(1311) 7 months, 3 days ago 0

Good article. It is not very obvious to developers who are new to EFCF what really caused the circular reference.

Reply

information Login or create an account to comment on this story