FromSqlRaw Data is Null

  • 64
  • 0

dbset.FromSqlRaw Data is Null. This method or property cannot be called on Null values.

常用sqlScript會遇到,基本上會遇到sql 端會有null 情況,而在對應的T class,轉型不過去,除非在某型別加上nullable,記錄一下,若有錯請指教一下,謝謝。

https://stackoverflow.com/questions/55883704/entity-framework-core-sqlnullvalueexception-data-is-null-how-to-troubleshoo