From ad14262d0674a8c29eb1a82c0117deaee2123f00 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Fri, 18 Oct 2024 13:45:34 -0400 Subject: [PATCH] Update spec to use asnotracking and splitquery --- .../MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DevBetterWeb.Core/Specs/MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec.cs b/src/DevBetterWeb.Core/Specs/MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec.cs index c1b383e9..e75fc44f 100644 --- a/src/DevBetterWeb.Core/Specs/MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec.cs +++ b/src/DevBetterWeb.Core/Specs/MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec.cs @@ -17,6 +17,8 @@ public MemberByUserIdWithBooksReadAndMemberSubscriptionsSpec(string userId) .Include(member => member.MemberSubscriptions); Query - .Include(member => member.UploadedBooks); + .Include(member => member.UploadedBooks) + .AsSplitQuery() + .AsNoTracking(); } }