首页 > 解决方案 > 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; }
        }

标签: c#.net-coreamazon-dynamodb

解决方案


推荐阅读