Closed linithos closed 9 years ago
Hello,
I'm trying to do a QueryAsycn on a Table with a Hash Key and Range Key. But I'm getting an error "Argument can not be null. Parameter name = null".
var search = DBConnect.Context.QueryAsync(hashKey); search.GetRemainingAsync((result) => { List myList = new List(); myList = result.Result; }, null);
I've tried the query on other table with a hashkey only and it works the problem is when the primary id is : hash key and range key.
Any help?
thanks
Lina
Hi Lina,
For Hash and range key, you should use
Context.QueryAsync<T>(hashvalue,Amazon.DynamoDBv2.DocumentModel.QueryOperator,rangevalues)
Thank you. =)
Hello,
I'm trying to do a QueryAsycn on a Table with a Hash Key and Range Key. But I'm getting an error "Argument can not be null. Parameter name = null".
var search = DBConnect.Context.QueryAsync(hashKey);
search.GetRemainingAsync((result) =>
{
List myList = new List();
myList = result.Result;
}, null);
I've tried the query on other table with a hashkey only and it works the problem is when the primary id is : hash key and range key.
Any help?
thanks
Lina