更新时间:2023-02-15 09:03:10
我找到了解决方案.我只需要包括以下代码行:
I found the solution. I simply needed to include this line of code:
DbContext.Configuration.ProxyCreationEnabled = false;
'ObjectContent`1'类型未能序列化WebAPI中内容类型的响应主体