Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ntwilson opened this issue Mar 23, 2023 · 0 comments
Open

Comments

@ntwilson
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant