首页 > 其他分享 >EF Core Error:Unable to cast object of type ‘System.DBNull‘ to type ‘System.String‘

EF Core Error:Unable to cast object of type ‘System.DBNull‘ to type ‘System.String‘

时间:2023-03-19 10:45:20浏览次数:56  
标签:Core String System Unable type DBNull

(163条消息) EF Core Error:Unable to cast object of type ‘System.DBNull‘ to type ‘System.String‘_webmote的博客-CSDN博客

 

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>disable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

 

双击项目,改为disable就可以了。

标签:Core,String,System,Unable,type,DBNull
From: https://www.cnblogs.com/wjx-blog/p/17232577.html

相关文章