We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7376baf commit c1db1d5Copy full SHA for c1db1d5
test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/UpdatingRelationshipsTests.cs
@@ -296,6 +296,12 @@ public async Task Can_Update_ToMany_Relationship_By_Patching_Resource()
296
[Fact]
297
public async Task Can_Update_ToMany_Relationship_By_Patching_Resource_When_Targets_Already_Attached()
298
{
299
+ // It is possible that entities we're creating relationships to
300
+ // have already been included in dbContext the application beyond control
301
+ // of JANDC. For example: a user may have been loaded when checking permissions
302
+ // in business logic in controllers. In this case,
303
+ // this user may not be reattached to the db context in the repository.
304
+
305
// arrange
306
var todoCollection = new TodoItemCollection();
307
todoCollection.TodoItems = new List<TodoItem>();
0 commit comments