File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ public QueryableExecutionModel GetExecutionModel(Expression expression)
105
105
return Translate ( expression ) . Model ;
106
106
}
107
107
108
- private object ExecuteModel ( QueryableExecutionModel model )
108
+ internal object ExecuteModel ( QueryableExecutionModel model )
109
109
{
110
110
return model . Execute ( _collection , _options ) ;
111
111
}
Original file line number Diff line number Diff line change @@ -73,7 +73,9 @@ public QueryableExecutionModel GetExecutionModel()
73
73
74
74
public IAsyncCursor < TOutput > ToCursor ( CancellationToken cancellationToken )
75
75
{
76
- return _queryProvider . ExecuteAsync < IAsyncCursor < TOutput > > ( _expression , cancellationToken ) . GetAwaiter ( ) . GetResult ( ) ;
76
+ var model = _queryProvider . GetExecutionModel ( _expression ) ;
77
+ var mongoQueryProvider = ( MongoQueryProviderImpl < TInput > ) _queryProvider ;
78
+ return ( IAsyncCursor < TOutput > ) mongoQueryProvider . ExecuteModel ( model ) ;
77
79
}
78
80
79
81
public Task < IAsyncCursor < TOutput > > ToCursorAsync ( CancellationToken cancellationToken )
You can’t perform that action at this time.
0 commit comments