Skip to content

Commit cc161d6

Browse files
committed
Changes check for force prefetch
1 parent 6b89699 commit cc161d6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Orm/Xtensive.Orm/Orm/Internals/EntitySetState.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,6 @@ internal bool ShouldUseForcePrefetch(Guid? currentPrefetchOperation)
291291

292292
lastManualPrefetchId = currentPrefetchOperation.Value;
293293
}
294-
if (isDisconnected) {
295-
return true;
296-
}
297294

298295
if (Session.Transaction != null) {
299296
switch (Session.Transaction.Outermost.IsolationLevel) {
@@ -307,6 +304,10 @@ internal bool ShouldUseForcePrefetch(Guid? currentPrefetchOperation)
307304
}
308305
}
309306

307+
if (isDisconnected) {
308+
return true;
309+
}
310+
310311
return false;
311312
}
312313

0 commit comments

Comments
 (0)