Skip to content

Commit 415306e

Browse files
authored
Update DefaultEntityRepository.cs
1 parent 2437077 commit 415306e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/JsonApiDotNetCore/Data/DefaultEntityRepository.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,14 @@ public virtual async Task<TEntity> CreateAsync(TEntity entity)
171171
/// <summary>
172172
/// Loads the inverse relationships to prevent foreign key constraints from being violated
173173
/// to support implicit removes, see https://github.com/json-api-dotnet/JsonApiDotNetCore/issues/502.
174-
/// <para/>
174+
/// <remark>
175175
/// Consider the following example:
176176
/// person.todoItems = [t1,t2] is updated to [t3, t4]. If t3, and/or t4 was
177177
/// already related to a other person, and these persons are NOT loaded in to the
178178
/// db context, then the query may cause a foreign key constraint. Loading
179179
/// these "inverse relationships" into the DB context ensures EF core to take
180180
/// this into account.
181+
/// </remark>
181182
/// </summary>
182183
private void LoadInverseRelationships(object trackedRelationshipValue, RelationshipAttribute relationshipAttr)
183184
{

0 commit comments

Comments
 (0)