c# - DynamoDB 如何在嵌套结构上使用 ScanAsync?
问题描述
任何人都有任何想法/示例如果在DynamoDbMethodParameter.Name == 特定值中,我如何获得具有所有嵌套结构的DynamoDbRepo列表?我想我应该使用 ScanAsync 但使用什么设置( ScanRequest )?
[DynamoDBTable("REPO_TABLE")]
public class DynamoDbRepo
{
[DynamoDBProperty("Id")]
[DynamoDBHashKey]
public int Id { get; set; }
[DynamoDBProperty("Solutions")]
public List<DynamoDbSolution> Solutions { get; set; }
}
public class DynamoDbSolution
{
[DynamoDBProperty("Path")]
public string Path { get; set; }
[DynamoDBProperty("Methods")]
public List<DynamoDbMethod> Methods { get; set; }
}
public class DynamoDbMethod
{
[DynamoDBProperty("Name")]
public string Name { get; set; }
[DynamoDBProperty("MethodParameters")]
public List<DynamoDbMethodParameter> MethodParameters { get; set; }
}
public class DynamoDbMethodParameter
{
[DynamoDBProperty("Type")]
public string Type { get; set; }
[DynamoDBProperty("Name")]
public string Name { get; set; }
}
解决方案
推荐阅读
- php - 如何在 laravel Blade 中声明查询?
- android - 如何提前检测Recyclerview是否为空?
- snowflake-cloud-data-platform - Snowflake 存储过程中每个 DML 操作的审计或行计数
- r - 创建一个虚拟变量,以面板观察的匹配值为条件
- java - Spring 和 H2 迁移
- regex - 在 Python 中,使用正则表达式替换另一个字符串中的字符串
- gradle - 仅当此给定测试在 gradle 测试阶段激活时,如何运行特定的 gradle 任务?
- python - 过滤掉数据框列中的值
- python - 在散点图中突出显示特定点(基于条件)
- scala - spark Scala中的直方图问题