Var query = new TableQuery().Where(filter) Var filter = TableQuery.GenerateFilterConditionForDate( Public static async Task> QueryTableAsync(string tableName)ĬloudStorageAccount storageAccount = CreateStorageAccountFromConnectionString("***") ĬloudTableClient tableClient = storageAccount.CreateCloudTableClient() ĬloudTable table = tableClient.GetTableReference(tableName) TableQuerySegment resultE= QueryTableAsync("test").Result Ĭonsole.WriteLine("Timestamp: "+re.Timestamp) Ĭonsole.WriteLine("-") Is there any limitation on querying based on Timestamp?Įdit: Tried switching to the new NuGet package (currently in preview, version 0.9.1), but I'm still not getting any results when filtering by Timestamp.Ĭode: using ![]() Looking at the generated filter string, it looks OK to me (and identical to the one in the Azure portal when using the query builder for Cosmos): If I execute the query without any filter. However, for some reason, the result always contains zero (0) hits. Next I execute the query: var result = await table.ExecuteQuerySegmentedAsync(query, null) Next I create a query using this filter: var query = new TableQuery().Where(filter) ![]() I'm creating a query to include Cosmos entities from the last 30 days: var filter = TableQuery.GenerateFilterConditionForDate(
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |