简体   繁体   English

从UWP应用程序访问Azure表存储的首选方法是什么?

[英]What's the preferred method for accessing Azure table storage from a UWP app?

UWP apps are supported by the Azure Storage SDK, but only a few methods for reading from Azure table storage are implemented. Azure Storage SDK支持UWP应用程序,但只实现了几种从Azure表存储中读取的方法。 For example, the most basic query on a table is typically done using the CloudTable.ExecuteQuery method, but that method isn't exposed to UWP apps. 例如,表上最基本的查询通常使用CloudTable.ExecuteQuery方法完成,但该方法不会向UWP应用程序公开。 In fact, the only query method that seems to be implemented is CloudTable.ExecuteQuerySegmentedAsync which is overkill for a simple query that returns 5 or 10 rows and will never need a token. 实际上,似乎实现的唯一查询方法是CloudTable.ExecuteQuerySegmentedAsync,这对于返回5行或10行并且永远不需要令牌的简单查询来说是过度的。

Is the storage SDK not the preferred means of UWP apps interacting with table storage? 存储SDK不是UWP应用程序与表存储交互的首选方式吗? Is the SDK assuming that all UWP apps will ever need is tokenized and segmented queries? SDK是否假设所有UWP应用程序都需要标记化和分段查询?

UWP 10 apps are not yet officially supported by Azure Storage Client. Azure Storage Client尚未正式支持UWP 10应用程序。

However, yes, our current Universal support has the maximal support overload ExecuteQuerySegmentedAsync. 但是,是的,我们当前的Universal支持具有最大支持重载ExecuteQuerySegmentedAsync。 ExecuteQuery returns a lazy enumerable, and lazy enumerables do not exist in an Async paradigm. ExecuteQuery返回一个惰性可枚举,并且在Async范例中不存在惰性枚举。

Our support for Universal apps is only async at this time. 我们对Universal应用程序的支持目前只是异步。

SDK methods are just a "shortcut". SDK方法只是一个“捷径”。 Under the hood them call Azure API. 在引擎盖下,他们调用Azure API。 So you can create your queries and run directly over Azure REST API. 因此,您可以创建查询并直接在Azure REST API上运行。

More info, check official doc: 更多信息,请查看官方文档:

Table Service REST API 表服务REST API

https://msdn.microsoft.com/en-us/library/azure/dd179423 https://msdn.microsoft.com/en-us/library/azure/dd179423

Query Tables 查询表

https://msdn.microsoft.com/en-us/library/azure/dd179405.aspx https://msdn.microsoft.com/en-us/library/azure/dd179405.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 UWP 访问 azure 表存储? - how to access the azure table storage using UWP? 从OSX(Mac)上的控制台应用程序访问Azure存储帐户 - Accessing Azure storage account from console app on OSX (Mac) 在Windows应用商店应用中使用Azure表存储的最佳做法是什么? - What is the best practice to consume Azure table storage in a windows store app? 从Azure存储加载XDocument的正确方法是什么 - What is proper method to load XDocument from Azure Storage 在执行Azure Table Storage的插入操作之后,我应该从C#中的Async方法返回什么? - What should I return from my Async method in C# after doing the insert operation of Azure Table Storage? 从 WPF 应用程序 class 访问变量的首选方式 - Preferred way of accessing variables from WPF App class 使用Azure存储Unity UWP应用进行NameResolutionFailure(在Player中工作) - NameResolutionFailure with Azure Storage Unity UWP app (works in Player) 从Azure存储Blob访问元数据 - Accessing metadata from azure storage blob 带有Azure App Services的Azure表存储的正确实体类型是什么 - What is the right Entity-Type for Azure Table Storage with Azure App Services 在.NET Windows应用程序中存储用户设置的首选方法是什么? - What's the preferred method for storing user settings in a .NET windows application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM