我研究了很多,但是,我找不到一种方法来扫描/查询嵌套属性。
public class Details
{
public string Code { get; set; }
public Details Details { get; set; }
}
public class Details
{
public string Code { get; set; }
public string ClientName { get; set; }
public string RequestedBy { get; set; }
public string CreateDate { get; set; }
}
//这是我的扫描条件
List<ScanCondition> scanConditions = new List<ScanCondition>
{
new ScanCondition
{
PropertyName = "Details.ClientName",
Operator = ScanOperator.Equal,
Values= new object [] { "CitiFinanace" }
}
};
//实际调用
await context.ScanAsync<T>(scanConditions, dynamoDBOperationConfig).GetRemainingAsync();
错误:属性不在存储中。
1条答案
按热度按时间y3bcpkx11#
AWS文档说明:
AWS SDK for .NET - ScanCondition Class
考虑到这一点,只需更换:
签署人: