ValidateBoolsWithDefaults should take bool? backing fields into account #28509
Labels
area-model-building
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Given the following pattern is supported since 3.1? #15182
https://github.com/dotnet/efcore/blame/037fc6fd2b9ac099b8b305dccc355d61846b6032/src/EFCore.Relational/Infrastructure/RelationalModelValidator.cs#L215
The validation here should take into account whether a
bool?
backing field for the property exists. This would be valid as long as a field with that type is known and the property access mode is suitable.Doing so would align the validation with the supported pattern.
The text was updated successfully, but these errors were encountered: