Skip to content

Commit

Permalink
Update spec to use asnotracking and splitquery
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Oct 18, 2024
1 parent da4817c commit ad14262
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec(string userId)
.Include(member => member.MemberSubscriptions);

Query
.Include(member => member.UploadedBooks);
.Include(member => member.UploadedBooks)
.AsSplitQuery()
.AsNoTracking();
}
}

0 comments on commit ad14262

Please sign in to comment.