Warn for non-nullable store-generated bool properties #7163
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
For bool properties the only valid values are true and false. If the value is false, then it is the CLR default, which triggers store generation. Therefore it is impossible to insert false values. This is unlikely to be the desired behavior. The usual fix for this is to make the property nullable.
For enums the situation is slightly different. The CLR default is always zero, which might also be a defined enum value, but also might not be. Even if it is a valid enum value it might be defined as something like "Default" possibly indicating that value generation should happen.
The text was updated successfully, but these errors were encountered: