subsonic

A circular reference was detected while serializing an object of type 'SubSonic.Schema .DatabaseColumn'.

六眼飞鱼酱① 提交于 2019-11-26 01:39:42
问题 I am trying to do a simple JSON return but I am having issues I have the following below. public JsonResult GetEventData() { var data = Event.Find(x => x.ID != 0); return Json(data); } I get a HTTP 500 with the exception as shown in the title of this question. I also tried var data = Event.All().ToList() That gave the same problem. Is this a bug or my implementation? 回答1: It seems that there are circular references in your object hierarchy which is not supported by the JSON serializer. Do you