We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3143e4a commit f6d5c34Copy full SHA for f6d5c34
test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/UpdatingDataTests.cs
@@ -11,6 +11,7 @@
11
using JsonApiDotNetCoreExample.Models;
12
using Microsoft.AspNetCore.Hosting;
13
using Microsoft.AspNetCore.TestHost;
14
+using Microsoft.EntityFrameworkCore;
15
using Newtonsoft.Json;
16
using Xunit;
17
using Person = JsonApiDotNetCoreExample.Models.Person;
@@ -124,7 +125,8 @@ public async Task Can_Patch_Entity_And_HasOne_Relationships()
124
125
126
// Act
127
var response = await client.SendAsync(request);
- var updatedTodoItem = _context.TodoItems
128
+ var updatedTodoItem = _context.TodoItems.AsNoTracking()
129
+ .Include(t => t.Owner)
130
.SingleOrDefault(t => t.Id == todoItem.Id);
131
132
// Assert
0 commit comments