Skip to content

Commit be0f22f

Browse files
Merge pull request #5204 from dotnet/main
Auto Publish – main to live - 2025-12-12 23:03 UTC
2 parents c356a24 + fbe224a commit be0f22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entity-framework/core/modeling/relationships/mapping-attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The use of data annotations across many technologies and for both mapping and va
4545
[!code-csharp[RequiredOnForeignKey](../../../../samples/core/Modeling/Relationships/MappingAttributes.cs?name=RequiredOnForeignKey)]
4646

4747
> [!NOTE]
48-
> When using [C# nullable reference types](/dotnet/csharp/tutorials/nullable-reference-types), the `BlogId` property in this example is already non-nullable, which means the `[Required]` attribute will have no affect.
48+
> When using [C# nullable reference types](/dotnet/csharp/tutorials/nullable-reference-types), the `BlogId` property in this example is already non-nullable, which means the `[Required]` attribute will have no effect.
4949
5050
`[Required]` placed on the dependent navigation has the same effect. That is, making the foreign key non-nullable, and thereby making the relationship required. For example:
5151

0 commit comments

Comments
 (0)