|
@@ -695,7 +695,6 @@ 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);
|
|
@@ -798,7 +797,6 @@ 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)
|
|
|
{
|
|
@@ -827,7 +825,6 @@ 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)
|
|
|
{
|