问题,在使用Newtonsoft.Json对强类型的DataTable进行系列化时会出现循环引用错误

Newtonsoft.Json转换强类型DataTable错误:Self referencing loop detected with type ......

解决办法,不要直接系列化强类型的DataTable,改为

JsonConvert.SerializeObject(dt.DefaultView.ToTable());
系列化缺省视图转换出来的DataTable

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-07-23
  • 2021-08-25
  • 2021-06-16
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案