[英]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.