【发布时间】:2020-05-07 08:20:36
【问题描述】:
我收到以下代码的以下错误:
错误 CS1061“AsyncSearch”不包含“GetAwaiter”的定义,并且找不到接受“AsyncSearch”类型的第一个参数的可访问扩展方法“GetAwaiter”(您是否缺少 using 指令还是程序集参考?
DynamoDBContext context = new DynamoDBContext(client);
DynamoDBOperationConfig indexHashRangeOpConfig = new DynamoDBOperationConfig()
{
IndexName = "ProjectFGDIndex",
ConsistentRead = false,
};
IEnumerable<Dashboardreq> list = await
context.QueryAsync<Dashboardreq>(req.ProjectName, QueryOperator.Between, new string[] {
req.FileGeneratedFromDate+" " + Constants.DayBeginTime,
req.FileGeneratedToDate+" " + Constants.DayEndTime
});
错误发生在 await context.QueryAsync 调用中。 寻求指导...
【问题讨论】:
标签: c# amazon-dynamodb