使用下一个令牌从amazonsimpledb获取所有记录 [英] fetch all records from amazonsimpledb using next token
本文介绍了使用下一个令牌从amazonsimpledb获取所有记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何使用下一个令牌从Amazonsimpledb获取所有记录请给我完整的代码我正在使用dll。
我使用下面的代码请帮助我在哪里我将使用下一个标记来获取所有记录
public static void GetItemByQuery(AmazonSimpleDB simpleDBClient)
{
SelectResponse response = simpleDBClient.Select( new SelectRequest(){
SelectExpression = 从 + TableName
}中选择*);
字符串 res = TableName + 具有: 跨度>;
Console.Out.WriteLine(res);
foreach (项目 in response.SelectResult.Item)
{
res = item.Name + :;
foreach (Amazon.SimpleDB.Model.Attribute属性 in item.Attribute)
{
res + = { + attribute.Name + , + attribute.Value + },;
}
res = res.Remove(res.Length - 2 );
Console.Out.WriteLine(res);
}
}
解决方案
这是你的作业。从这里开始文档:
查询101:构建Amazon SimpleDB查询 [ ^ ]
C#中的下一个令牌机制示例代码:
从Amazon SimpleDB查询结果中读取所有项目 [ ^ ]
我不会为您提供完整的代码。这是你的工作实施。所以阅读我建议你的材料,我相信你会找到实现它的方法。
祝你好运,
OI
how we can fetch all record from Amazonsimpledb using next token please give me complete code I am using dll.
I am using below code please help me where I will use next token to fetch the all records
public static void GetItemByQuery(AmazonSimpleDB simpleDBClient)
{
SelectResponse response = simpleDBClient.Select(new SelectRequest() {
SelectExpression = "Select * from " + TableName
});
String res = TableName + " has: ";
Console.Out.WriteLine(res);
foreach (Item item in response.SelectResult.Item)
{
res = item.Name + ": ";
foreach (Amazon.SimpleDB.Model.Attribute attribute in item.Attribute)
{
res += "{" + attribute.Name + ", " + attribute.Value + "}, ";
}
res = res.Remove(res.Length - 2);
Console.Out.WriteLine(res);
}
}
解决方案
Here is your assignment. Start from here the documentation:
Query 101: Building Amazon SimpleDB Queries[^]
Next Token mechanism sample code in C#:
Reading All Items from an Amazon SimpleDB Query Result [^]
I will not provide the complete code for you. Which is your work to implement. So read the materials that I suggest you and I am sure you will find your way to implement it.
Good luck,
OI
这篇关于使用下一个令牌从amazonsimpledb获取所有记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文