Skip to content

Commit d879b12

Browse files
authoredJan 28, 2021
Fix small typos (#3046)
1 parent cd55935 commit d879b12

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎entity-framework/core/change-tracking/explicit-tracking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ After SaveChanges completes, all the deleted entities are detached from the DbCo
888888

889889
<xref:Microsoft.EntityFrameworkCore.ChangeTracking.ChangeTracker.TrackGraph%2A?displayProperty=nameWithType> works like `Add`, `Attach` and `Update` except that it generates a callback for every entity instance before tracking it. This allows custom logic to be used when determining how to track individual entities in a graph.
890890

891-
For example, consider the rule EF Core uses when tracking entities with generated key values: if the kye value is zero, then the entity is new and should be inserted. Let's extend this rule to say if the key value is negative, then the entity should be deleted. This allows us to change the primary key values in entities of a disconnected graph to mark deleted entities:
891+
For example, consider the rule EF Core uses when tracking entities with generated key values: if the key value is zero, then the entity is new and should be inserted. Let's extend this rule to say if the key value is negative, then the entity should be deleted. This allows us to change the primary key values in entities of a disconnected graph to mark deleted entities:
892892

893893
<!--
894894
blog.Posts.Add(

‎entity-framework/core/change-tracking/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ DbContext is designed to represent a short-lived unit-of-work, as described in [
4545
4646
## Entity states
4747

48-
Every entity is is associated with a given <xref:Microsoft.EntityFrameworkCore.EntityState>:
48+
Every entity is associated with a given <xref:Microsoft.EntityFrameworkCore.EntityState>:
4949

5050
- `Detached` entities are not being tracked by the <xref:Microsoft.EntityFrameworkCore.DbContext>.
5151
- `Added` entities are new and have not yet been inserted into the database. This means they will be inserted when <xref:Microsoft.EntityFrameworkCore.DbContext.SaveChanges%2A> is called.

‎entity-framework/core/change-tracking/relationship-changes.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ Relationship fixup also happens between entities returned from a tracking query
179179
var posts = context.Posts.ToList();
180180
Console.WriteLine(context.ChangeTracker.DebugView.LongView);
181181
-->
182-
[!code-csharp[Relationship_fixup_2](../../../ samples / core / ChangeTracking / ChangingFKsAndNavigations / OptionalRelationshipsSamples.cs ? name = Relationship_fixup_2
183-
) ]
182+
[!code-csharp[Relationship_fixup_2](../../../samples/core/ChangeTracking/ChangingFKsAndNavigations/OptionalRelationshipsSamples.cs?name=Relationship_fixup_2)]
184183
Looking again at the debug views, after the first query only the two blogs are tracked:
185184

186185
```output

0 commit comments

Comments
 (0)
Please sign in to comment.