Windows Azure Storage Tables 操作详解
在 Windows Azure 存储中,表存储是一项重要的功能,它允许用户存储和管理结构化数据。下面将详细介绍表存储中的列表查询、实体操作等内容。
1. 列出表操作
列出表的操作通过 WindowsAzureStorageHelper 对象调用 StorageClient 库中 TableStorage 对象的 ListTables() 方法来实现。具体流程如下:
graph LR
A[WindowsAzureStorageHelper] --> B[TableStorage.ListTables()]
B --> C[DataServiceContext 创建 DataServiceQuery 实例]
C --> D[DataServiceQuery.Execute()]
D --> E[Table 服务返回表名列表]
TableStorage 对象利用 DataServiceContext 对象创建 DataServiceQuery 类的实例,然后调用 Execute() 方法从表服务中检索表的列表,表服务会返回存储账户中所有表名的列表。
2. 实体操作
实体支持多种操作,主
超级会员免费看
订阅专栏 解锁全文
743

被折叠的 条评论
为什么被折叠?



