|
@@ -695,6 +695,7 @@ namespace TEAMModelOS.SDK.Module.AzureCosmosDB.Implements
|
|
|
DocumentCollection collection= await InitializeCollection<T>();
|
|
|
StringBuilder sql = new StringBuilder("select value(c) from c");
|
|
|
SQLHelper.GetSQL(dict,ref sql);
|
|
|
+ SQLHelper.ReplaceKeyWords(ref sql);
|
|
|
//查询条数 -1是全部
|
|
|
FeedOptions queryOptions = new FeedOptions { MaxItemCount = -1, EnableCrossPartitionQuery = IsPk };
|
|
|
var query = CosmosClient.CreateDocumentQuery<T>(UriFactory.CreateDocumentCollectionUri(Database, collection.Id), sql.ToString(), queryOptions);
|
|
@@ -797,6 +798,7 @@ namespace TEAMModelOS.SDK.Module.AzureCosmosDB.Implements
|
|
|
}*/
|
|
|
StringBuilder sql = new StringBuilder("select value(c) from c");
|
|
|
SQLHelper.GetSQL(dict,ref sql);
|
|
|
+ SQLHelper.ReplaceKeyWords(ref sql);
|
|
|
FeedOptions queryOptions;
|
|
|
if (collection.PartitionKey.Paths.Count > 0)
|
|
|
{
|
|
@@ -825,6 +827,7 @@ namespace TEAMModelOS.SDK.Module.AzureCosmosDB.Implements
|
|
|
|
|
|
StringBuilder sql = new StringBuilder("select value count(c) from c");
|
|
|
SQLHelper.GetSQL(dict, ref sql);
|
|
|
+ SQLHelper.ReplaceKeyWords(ref sql);
|
|
|
FeedOptions queryOptions;
|
|
|
if (collection.PartitionKey.Paths.Count > 0)
|
|
|
{
|