EF jsonignore
页面单独指定不循环引用
[JsonIgnore]
Newtonsoft.Json.JsonSerializerSettings jsSettings = new Newtonsoft.Json.JsonSerializerSettings(); jsSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore; string json = Newtonsoft.Json.JsonConvert.SerializeObject(GF_OrdersList, Newtonsoft.Json.Formatting.None, jsSettings);