@@ -103,8 +103,8 @@ public CustomLoader(ICustomQuery customQuery, ISessionFactoryImplementor factory
103
103
specifiedAliases . Add ( rootRtn . Alias ) ;
104
104
entityaliases . Add ( rootRtn . EntityAliases ) ;
105
105
querySpaces . UnionWith ( persister . QuerySpaces ) ;
106
- // 6.0 TODO: the cast and null coalesce to true will no more be needed once IPersister's todo is done.
107
- supportsQueryCache = supportsQueryCache && ( ( persister as IPersister ) ? . SupportsQueryCache ?? true ) ;
106
+ // 6.0 TODO: Use IPersister.SupportsQueryCache property once IPersister's todo is done.
107
+ supportsQueryCache = supportsQueryCache && persister . SupportsQueryCache ( ) ;
108
108
includeInResultRowList . Add ( true ) ;
109
109
}
110
110
else if ( rtn is CollectionReturn )
@@ -129,8 +129,8 @@ public CustomLoader(ICustomQuery customQuery, ISessionFactoryImplementor factory
129
129
entityowners . Add ( - 1 ) ;
130
130
entityaliases . Add ( collRtn . ElementEntityAliases ) ;
131
131
querySpaces . UnionWith ( elementPersister . QuerySpaces ) ;
132
- // 6.0 TODO: the cast and null coalesce to true will no more be needed once IPersister's todo is done.
133
- supportsQueryCache = supportsQueryCache && ( ( elementPersister as IPersister ) ? . SupportsQueryCache ?? true ) ;
132
+ // 6.0 TODO: Use IPersister.SupportsQueryCache property once IPersister's todo is done.
133
+ supportsQueryCache = supportsQueryCache && elementPersister . SupportsQueryCache ( ) ;
134
134
}
135
135
includeInResultRowList . Add ( true ) ;
136
136
}
@@ -150,8 +150,8 @@ public CustomLoader(ICustomQuery customQuery, ISessionFactoryImplementor factory
150
150
specifiedAliases . Add ( fetchRtn . Alias ) ;
151
151
entityaliases . Add ( fetchRtn . EntityAliases ) ;
152
152
querySpaces . UnionWith ( persister . QuerySpaces ) ;
153
- // 6.0 TODO: the cast and null coalesce to true will no more be needed once IPersister's todo is done.
154
- supportsQueryCache = supportsQueryCache && ( ( persister as IPersister ) ? . SupportsQueryCache ?? true ) ;
153
+ // 6.0 TODO: Use IPersister.SupportsQueryCache property once IPersister's todo is done.
154
+ supportsQueryCache = supportsQueryCache && persister . SupportsQueryCache ( ) ;
155
155
includeInResultRowList . Add ( false ) ;
156
156
}
157
157
else if ( rtn is CollectionFetchReturn )
@@ -177,8 +177,8 @@ public CustomLoader(ICustomQuery customQuery, ISessionFactoryImplementor factory
177
177
entityowners . Add ( ownerIndex ) ;
178
178
entityaliases . Add ( fetchRtn . ElementEntityAliases ) ;
179
179
querySpaces . UnionWith ( elementPersister . QuerySpaces ) ;
180
- // 6.0 TODO: the cast and null coalesce to true will no more be needed once IPersister's todo is done.
181
- supportsQueryCache = supportsQueryCache && ( ( elementPersister as IPersister ) ? . SupportsQueryCache ?? true ) ;
180
+ // 6.0 TODO: Use IPersister.SupportsQueryCache property once IPersister's todo is done.
181
+ supportsQueryCache = supportsQueryCache && elementPersister . SupportsQueryCache ( ) ;
182
182
}
183
183
includeInResultRowList . Add ( false ) ;
184
184
}
0 commit comments