-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
HasConversion to a nullable Type does not seem to work #33645
Comments
|
Hello
I would like to change a property of
double
into adouble?
column. My idea of doing so would be through a converter. But when I run thedotnet ef Migrations add
command it still creates a column withnullable: false
. How can I make a nullable column through the fluent api? I also tried to setIsRequired(false)
but that throws an exception.Here is the DataContext i was trying:
And that is the generated code:
EF Core version: 8.0.4
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 8.0
Operating system: W10
IDE: Visual Studio 2022 17.8.6 & JetBrains Rider 2024.1.1
Solution as .zip
The text was updated successfully, but these errors were encountered: