File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Orm/Xtensive.Orm.Tests/Issues Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,9 @@ public void LoopIndexExecuteDelayedTest()
160160 List < IEnumerable < Location > > queries = new List < IEnumerable < Location > > ( ) ;
161161 var cachedQueriesCountBefore = Domain . QueryCache . Count ;
162162 for ( int i = 0 ; i < upperLimit ; i ++ ) {
163- var locations = session . Query . CreateDelayedQuery ( endpoint => from location in session . Query . All < Location > ( )
163+ var locations = session . Query . CreateDelayedQuery ( endpoint => from location in endpoint . All < Location > ( )
164164 where location . Active && location . Id . In ( (
165- from loc in session . Query . All < Location > ( )
165+ from loc in endpoint . All < Location > ( )
166166 where loc . Id > i && loc . Zone == null
167167 orderby loc . Id
168168 select loc . Id ) )
@@ -312,9 +312,9 @@ private void TaskSequencesGenerator(Session session)
312312
313313 private int GetMinimalId ( Session session , int startId )
314314 {
315- var locations = session . Query . CreateDelayedQuery ( endpoint => from location in session . Query . All < Location > ( )
315+ var locations = session . Query . CreateDelayedQuery ( endpoint => from location in endpoint . All < Location > ( )
316316 where location . Active && location . Id . In ( (
317- from loc in session . Query . All < Location > ( )
317+ from loc in endpoint . All < Location > ( )
318318 where loc . Id > startId && loc . Zone == null
319319 orderby loc . Id
320320 select loc . Id ) )
You can’t perform that action at this time.
0 commit comments