Skip to content

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

Description

@ntwilson

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions