Skip to content

Commit bcece16

Browse files
authored
Update exception message for optional dependent without identifying property (#28086)
Resolves #26800
1 parent ddaf990 commit bcece16

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/EFCore.Relational/Properties/RelationalStrings.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/EFCore.Relational/Properties/RelationalStrings.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,11 @@
636636
<comment>Debug RelationalEventId.ConnectionOpening string string</comment>
637637
</data>
638638
<data name="LogOptionalDependentWithAllNullProperties" xml:space="preserve">
639-
<value>The entity of type '{entityType}' is an optional dependent using table sharing. The entity does not have any property with a non-default value to identify whether the entity exists. This means that when it is queried no object instance will be created instead of an instance with all properties set to default values. Any nested dependents will also be lost. Either don't save any instance with only default values or mark the incoming navigation as required in the model. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity.</value>
639+
<value>The entity of type '{entityType}' is an optional dependent using table sharing. The entity does not have any property with a non-null value to identify whether the entity exists. This means that when it is queried no object instance will be created instead of an instance with all properties set to null values. Any nested dependents will also be lost. Either don't save any instance with only null values or mark the incoming navigation as required in the model. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the key values of the entity.</value>
640640
<comment>Warning RelationalEventId.OptionalDependentWithAllNullPropertiesWarning string</comment>
641641
</data>
642642
<data name="LogOptionalDependentWithAllNullPropertiesSensitive" xml:space="preserve">
643-
<value>The entity of type '{entityType}' with primary key values {keyValues} is an optional dependent using table sharing. The entity does not have any property with a non-default value to identify whether the entity exists. This means that when it is queried no object instance will be created instead of an instance with all properties set to default values. Any nested dependents will also be lost. Either don't save any instance with only default values or mark the incoming navigation as required in the model.</value>
643+
<value>The entity of type '{entityType}' with primary key values {keyValues} is an optional dependent using table sharing. The entity does not have any property with a non-null value to identify whether the entity exists. This means that when it is queried no object instance will be created instead of an instance with all properties set to null values. Any nested dependents will also be lost. Either don't save any instance with only null values or mark the incoming navigation as required in the model.</value>
644644
<comment>Warning RelationalEventId.OptionalDependentWithAllNullPropertiesWarning string string</comment>
645645
</data>
646646
<data name="LogOptionalDependentWithoutIdentifyingProperty" xml:space="preserve">

0 commit comments

Comments
 (0)