Skip to content

Commit 3e17aae

Browse files
Update many-to-many.md
The word payload is introduced without a corresponding definition, leaving the reader a bit confused. This provides a succinct definition when first encountering the term in the article.
1 parent 45baf92 commit 3e17aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ CREATE TABLE "PostTag" (
266266
267267
## Many-to-many with class for join entity
268268

269-
So far in the examples, the join table has been automatically mapped to a [shared-type entity type](xref:core/modeling/entity-types#shared-type-entity-types). This removes the need for a dedicated class to be created for the entity type. However, it can be useful to have such a class so that it can be referenced easily, especially when navigations or a payload are added to the class, as is shown in later examples below. To do this, first create a type `PostTag` for the join entity in addition to the existing types for `Post` and `Tag`:
269+
So far in the examples, the join table has been automatically mapped to a [shared-type entity type](xref:core/modeling/entity-types#shared-type-entity-types). This removes the need for a dedicated class to be created for the entity type. However, it can be useful to have such a class so that it can be referenced easily, especially when navigations or a payload are added to the class, as is shown in later examples below (A "payload" is any additional data in the join table, for example, the timestamp in which an entry in the join table is created). To do this, first create a type `PostTag` for the join entity in addition to the existing types for `Post` and `Tag`:
270270

271271
<!--
272272
public class Post

0 commit comments

Comments
 (0)