Skip to content

Commit

Permalink
Update entity-state.md (dotnet#3475)
Browse files Browse the repository at this point in the history
Added "be" between "will" and "attached" in line 133. This corrects that portion of the sentence to read "will be attached".
  • Loading branch information
lateneze authored Oct 12, 2021
1 parent 8dbc6b5 commit 4ad5081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ using (var context = new BloggingContext())

When you change the state to Modified all the properties of the entity will be marked as modified and all the property values will be sent to the database when SaveChanges is called.

Note that if the entity being attached has references to other entities that are not yet tracked, then these new entities will attached to the context in the Unchanged state—they will not automatically be made Modified.
Note that if the entity being attached has references to other entities that are not yet tracked, then these new entities will be attached to the context in the Unchanged state—they will not automatically be made Modified.
If you have multiple entities that need to be marked Modified you should set the state for each of these entities individually.

## Changing the state of a tracked entity
Expand Down

0 comments on commit 4ad5081

Please sign in to comment.