Skip to content

Commit 8b46e14

Browse files
Merge pull request #5201 from dotnet/main
Auto Publish – main to live - 2025-12-09 23:04 UTC
2 parents 4490199 + 9c61935 commit 8b46e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entity-framework/core/modeling/relationships/one-to-one.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ Any one-to-one relationship where the foreign key is not discovered by conventio
176176
[!code-csharp[OneToOneRequiredPkToPkConfig](../../../../samples/core/Modeling/Relationships/OneToOne.cs?name=OneToOneRequiredPkToPkConfig)]
177177

178178
> [!TIP]
179-
> `HasPrincipalKey` can also used for this purpose, but doing so is less common.
179+
> `HasPrincipalKey` can also be used for this purpose, but doing so is less common.
180180
181181
When no property is specified in the call to `HasForeignKey`, and the primary key is suitable, then it is used as the foreign key. For cases where the navigations, foreign key, or required/optional nature of the relationship are not discovered by convention, these things can be configured explicitly. For example:
182182

0 commit comments

Comments
 (0)