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);
原文地址:https://www.cnblogs.com/zengpeng/p/6048273.html