Self referencing loop detected for property
来源:互联网 发布:dating付费软件靠谱吗 编辑:程序博客网 时间:2024/04/27 09:59
问题记录:
Self referencing loop detected for property 'ParentClassify' with type 'System.Data.Entity.DynamicProxies.Classify_A1F38FCCD6F018E5AEE129BF1636404F78C4F0F625B17FCC6A9B5AFDC8A5E1BF'. Path '[2].ChildrenClassifys[0]'.
描述:
自我引用循环探测到类型ParentClassify System.Data.Entity.DynamicProxies.Classify_A1F38FCCD6F018E5AEE129BF1636404F78C4F0F625B17FCC6A9B5AFDC8A5E1BF”型。路径”[2].ChildrenClassifys[0]”。
解决办法:
JsonSerializerSettings settings = new JsonSerializerSettings();
settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
ViewBag.ClassifyJsonStr = JsonConvert.SerializeObject(classifylist, settings);
settings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
ViewBag.ClassifyJsonStr = JsonConvert.SerializeObject(classifylist, settings);
阅读全文
0 0
- Self referencing loop detected for property
- C# Json.net Self referencing loop detected for property
- Json Self referencing loop detected
- JSON.NET Error Self referencing loop detected for type
- 错误:【Self referencing loop detected with type】
- JSON.Net Self referencing loop detected
- Self referencing loop detected for type 'System.Data.Entity.DynamicProxies.Rpt_StatementInfo_F31C84C
- Self-referencing loop problems
- Binding loop detected for property 错误解决方案
- Newtonsoft.Json转换强类型DataTable错误:Self referencing loop detected with type ......
- 关于报错Self referencing loop detected with type的原因以及解决办法
- Self-Learning:Naming and Referencing Containers, Blobs, and Metadata
- Strange Loops: Ken Thompson and the Self-referencing C Compiler
- self,@property用法总结
- vc60.pdb” is missing debugging information for referencing module 错误
- vc60.pdb” is missing debugging information for referencing module 错误
- vc60.pdb” is missing debugging information for referencing module 错误
- Oracle/PLSQL: FOR Loop
- 作为一个安卓开发,如何去开发AR?需要具体学什么?
- ThreadLocal类的使用
- pymongo报错 pymongo.errors.OperationFailure: Authentication failed.
- 如何写好总结助力向上管理
- Cadence 中原理图的绘制流程
- Self referencing loop detected for property
- Java RTTI -- JAVA 进阶
- 滑动渐变
- 父子进程之间的关系
- 前端开发细节-2
- react 真机不出现开发者菜单 不能reload
- js数组冒泡排序
- TCP/IP协议 笔试题和面试题
- C语言(Head First C)-9_1:静态库与动态库:静态库