且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

'ObjectContent`1'类型未能序列化WebAPI中内容类型的响应主体

更新时间:2023-02-15 09:03:10

我找到了解决方案.我只需要包括以下代码行:

I found the solution. I simply needed to include this line of code:

DbContext.Configuration.ProxyCreationEnabled = false;