efcore / EFCore.FSharp

Adds F# design-time support to EF Core
MIT License
228 stars 26 forks source link

Scaffolding a `nvarchar NULL` creates a `string` and not a `string option` #156

Open ntwilson opened 1 year ago

ntwilson commented 1 year ago

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: