돌아가기

ASP.NET DynamoDB Secondary Index Query

11/14/2024 6:22:30 PM

var indexName = "Partition-ASDF-index";  
  
var filter = new QueryFilter("ASDF", QueryOperator.Equal, project);  
filter.AddCondition("Partition", QueryOperator.Equal, "0");  
  
var query = new QueryOperationConfig  
{  
    IndexName = "Partition-ASDF-index",  
    Filter = filter,  
};  
  
var contents = await DynamoDBContext.FromQueryAsync<ASDF>(query).GetRemainingAsync();