我可以从 Windows Azure 表存储中仅检索某些字段吗
我有以下课程:
public class Menu : TableServiceEntity
{
public string Order { get; set; }
public string Text { get; set; }
public int Length { get; set; }
}
我只想从 TableStorage 中检索 PartitionKey、RowKey、Order 和 Length 数据。
有什么方法可以让我检索这些数据还是我仍然需要检索所有内容。我问的原因是因为文本字段包含大量数据,我想将检索到的数据最小化为我需要的数据。
请注意,这不是 SQL Azure 存储。谢谢
I have the following class:
public class Menu : TableServiceEntity
{
public string Order { get; set; }
public string Text { get; set; }
public int Length { get; set; }
}
I would like to retrieve only the PartitionKey, RowKey, Order and Length data from my TableStorage.
Is there some way that I can just retrieve this data or do I still need to retrieve everything. The reason I ask is because the Text field contains some large amounts of data and I would like to minimize what is retrieved to just what I need.
Please note this is not SQL Azure storage. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 2011-08-18 版本开始,您可以使用查询投影 (LINQ Select)。
检查一下:http://msdn.microsoft.com/en-us/库/windowsazure/dd135725.aspx
From the 2011-08-18 version you can use the query projection (LINQ Select).
Check this: http://msdn.microsoft.com/en-us/library/windowsazure/dd135725.aspx