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 I set a boolean property with a default value in my entity and then try to add a new record with a value different from the default, EF Core generates an SQL INSERT statement without including that column.
Steps to reproduce:
Create an entity with a boolean property.
Configure the boolean property to have a default value of true.
Add a new entity with the boolean property set to false.
Notice that the generated SQL does not include the boolean column.
Expected behavior:
The SQL statement should include the boolean column with the value set to false.
Actual behavior:
The SQL statement does not include the boolean column, and the default value of true is always set.
When I set a boolean property with a default value in my entity and then try to add a new record with a value different from the default, EF Core generates an SQL INSERT statement without including that column.
Steps to reproduce:
Expected behavior:
The SQL statement should include the boolean column with the value set to false.
Actual behavior:
The SQL statement does not include the boolean column, and the default value of true is always set.
EF Core version: 6.0.8
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET 6
The text was updated successfully, but these errors were encountered: