@@ -32,7 +32,7 @@ internal sealed class CosmosLinqQuery<T> : IDocumentQuery<T>, IOrderedQueryable<
32
32
private readonly QueryRequestOptions cosmosQueryRequestOptions ;
33
33
private readonly bool allowSynchronousQueryExecution = false ;
34
34
private readonly string continuationToken ;
35
- private readonly CosmosSerializationOptions serializationOptions ;
35
+ private readonly CosmosLinqSerializerOptions linqSerializationOptions ;
36
36
37
37
public CosmosLinqQuery (
38
38
ContainerInternal container ,
@@ -42,7 +42,7 @@ public CosmosLinqQuery(
42
42
QueryRequestOptions cosmosQueryRequestOptions ,
43
43
Expression expression ,
44
44
bool allowSynchronousQueryExecution ,
45
- CosmosSerializationOptions serializationOptions = null )
45
+ CosmosLinqSerializerOptions linqSerializationOptions = null )
46
46
{
47
47
this . container = container ?? throw new ArgumentNullException ( nameof ( container ) ) ;
48
48
this . responseFactory = responseFactory ?? throw new ArgumentNullException ( nameof ( responseFactory ) ) ;
@@ -52,7 +52,7 @@ public CosmosLinqQuery(
52
52
this . Expression = expression ?? Expression . Constant ( this ) ;
53
53
this . allowSynchronousQueryExecution = allowSynchronousQueryExecution ;
54
54
this . correlatedActivityId = Guid . NewGuid ( ) ;
55
- this . serializationOptions = serializationOptions ;
55
+ this . linqSerializationOptions = linqSerializationOptions ;
56
56
57
57
this . queryProvider = new CosmosLinqQueryProvider (
58
58
container ,
@@ -62,7 +62,7 @@ public CosmosLinqQuery(
62
62
cosmosQueryRequestOptions ,
63
63
this . allowSynchronousQueryExecution ,
64
64
this . queryClient . OnExecuteScalarQueryCallback ,
65
- this . serializationOptions ) ;
65
+ this . linqSerializationOptions ) ;
66
66
}
67
67
68
68
public CosmosLinqQuery (
@@ -72,7 +72,7 @@ public CosmosLinqQuery(
72
72
string continuationToken ,
73
73
QueryRequestOptions cosmosQueryRequestOptions ,
74
74
bool allowSynchronousQueryExecution ,
75
- CosmosSerializationOptions serializationOptions = null )
75
+ CosmosLinqSerializerOptions linqSerializerOptions = null )
76
76
: this (
77
77
container ,
78
78
responseFactory ,
@@ -81,7 +81,7 @@ public CosmosLinqQuery(
81
81
cosmosQueryRequestOptions ,
82
82
null ,
83
83
allowSynchronousQueryExecution ,
84
- serializationOptions )
84
+ linqSerializerOptions )
85
85
{
86
86
}
87
87
@@ -133,7 +133,7 @@ IEnumerator IEnumerable.GetEnumerator()
133
133
134
134
public override string ToString ( )
135
135
{
136
- SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . serializationOptions ) ;
136
+ SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . linqSerializationOptions ) ;
137
137
if ( querySpec != null )
138
138
{
139
139
return JsonConvert . SerializeObject ( querySpec ) ;
@@ -144,7 +144,7 @@ public override string ToString()
144
144
145
145
public QueryDefinition ToQueryDefinition ( IDictionary < object , string > parameters = null )
146
146
{
147
- SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . serializationOptions , parameters ) ;
147
+ SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . linqSerializationOptions , parameters ) ;
148
148
return QueryDefinition . CreateFromQuerySpec ( querySpec ) ;
149
149
}
150
150
@@ -201,7 +201,7 @@ internal async Task<Response<T>> AggregateResultAsync(CancellationToken cancella
201
201
202
202
private FeedIteratorInternal CreateStreamIterator ( bool isContinuationExcpected )
203
203
{
204
- SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . serializationOptions ) ;
204
+ SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . linqSerializationOptions ) ;
205
205
206
206
return this . container . GetItemQueryStreamIteratorInternal (
207
207
sqlQuerySpec : querySpec ,
@@ -213,7 +213,7 @@ private FeedIteratorInternal CreateStreamIterator(bool isContinuationExcpected)
213
213
214
214
private FeedIterator < T > CreateFeedIterator ( bool isContinuationExpected )
215
215
{
216
- SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . serializationOptions ) ;
216
+ SqlQuerySpec querySpec = DocumentQueryEvaluator . Evaluate ( this . Expression , this . linqSerializationOptions ) ;
217
217
218
218
FeedIteratorInternal streamIterator = this . CreateStreamIterator ( isContinuationExpected ) ;
219
219
return new FeedIteratorInlineCore < T > ( new FeedIteratorCore < T > (
0 commit comments