Skip to content

Commit 44acb54

Browse files
Update src/NHibernate/Action/BulkOperationCleanupAction.cs
Co-authored-by: Frédéric Delaporte <12201973+fredericDelaporte@users.noreply.github.com>
1 parent b52457a commit 44acb54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/NHibernate/Action/BulkOperationCleanupAction.cs

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public BulkOperationCleanupAction(ISessionImplementor session, IQueryable[] affe
3939
affectedCollectionRoles.UnionWith(roles);
4040
}
4141

42+
// 6.0 TODO: the cast and comparison to false will no more be needed once IPersister's todo is done.
43+
var supportsQuerySpace = (affectedQueryable as IPersister)?.SupportsQueryCache != false;
4244
foreach (var querySpace in affectedQueryable.QuerySpaces)
4345
{
4446
affectedSpaces.Add(querySpace);

0 commit comments

Comments
 (0)