You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When scaffolding any struct type in F# like int or DateTime, it will become an option if the database column is nullable. But when scaffolding a string (or maybe it's any reference type?), it does not become an option.
Maybe that's because the C# scaffolding of a value type will become Nullable, but C# scaffolding of a reference type is not Nullable, because it already can be made null?
Version information:
OS: Windows 10
.net SDK 6.0.115
.net 6.0
EntityFrameworkCore.FSharp 6.0.7
dotnet-ef 6.0.7
Microsoft.EntityFrameworkCore 6.0
The text was updated successfully, but these errors were encountered:
When scaffolding any struct type in F# like
int
orDateTime
, it will become anoption
if the database column is nullable. But when scaffolding astring
(or maybe it's any reference type?), it does not become anoption
.Maybe that's because the C# scaffolding of a value type will become
Nullable
, but C# scaffolding of a reference type is notNullable
, because it already can be made null?Version information:
The text was updated successfully, but these errors were encountered: