public override IOrderedQueryable <T> GetItemLinqQueryable <T>( bool allowSynchronousQueryExecution = false, string continuationToken = null, QueryRequestOptions requestOptions = null, CosmosLinqSerializerOptions linqSerializerOptions = null) { requestOptions ??= new QueryRequestOptions(); if (linqSerializerOptions == null && this.ClientContext.ClientOptions.SerializerOptions != null) { linqSerializerOptions = new CosmosLinqSerializerOptions { PropertyNamingPolicy = this.ClientContext.ClientOptions.SerializerOptions.PropertyNamingPolicy }; } return(new CosmosLinqQuery <T>( this, this.ClientContext.ResponseFactory, (CosmosQueryClientCore)this.queryClient, continuationToken, requestOptions, allowSynchronousQueryExecution, linqSerializerOptions)); }
internal static string GetStringWithPropertyNamingPolicy(CosmosLinqSerializerOptions options, string name) { if (options != null && options.PropertyNamingPolicy == CosmosPropertyNamingPolicy.CamelCase) { return(CosmosSerializationUtil.ToCamelCase(name)); } return(name); }
public override IOrderedQueryable <T> GetItemLinqQueryable <T>(bool allowSynchronousQueryExecution = false, string continuationToken = null, QueryRequestOptions requestOptions = null, CosmosLinqSerializerOptions linqSerializerOptions = null) { return(base.GetItemLinqQueryable <T>( allowSynchronousQueryExecution, continuationToken, requestOptions, linqSerializerOptions)); }