Skip to content

Instantly share code, notes, and snippets.

@jvasallo
Created November 9, 2019 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jvasallo/c59200b05b2c53b248c1c60276041ce0 to your computer and use it in GitHub Desktop.
Save jvasallo/c59200b05b2c53b248c1c60276041ce0 to your computer and use it in GitHub Desktop.
DynamoDB ScanCondition Example
var filter = new ScanFilter();
filter.AddCondition("someAttribute", ScanOperator.GreaterThan, "someValue");
filter.AddCondition("someOtherAttribute", ScanOperator.Equal, "someOtherValue");
filter.AddCondition("someAttributeThatIsOurKeyForAllIntentsAndPurposes", ScanOperator.Equal, "someId");
var search = _context.FromScanAsync<SomeDto>(new ScanOperationConfig {
Filter = filter
});
var scanResponse = await search.GetRemainingAsync();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment