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

(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就可以了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章