Output #nullable disable
in reverse-engineered model
#23016
Labels
area-scaffolding
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
Servicing-approved
type-enhancement
Milestone
I'm using EF Core 3.1.9 and .NET Core 3.1. In my database I've some nvarchars that could be null. For example:
The I'll scaffold the C# code using database first. I've got this class:
and this code inside the
DBContext
But when I want to select everything from the table I've this error:
Fix
I could solve this exception by using this code:
verbose output
Provider and version information
EF Core version: 3.1.9
Database provider:
Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET Core 3.1
Operating system: Windows 10
IDE: Visual Studio 2019
The text was updated successfully, but these errors were encountered: