Guest User

Untitled

a guest
Mar 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. var filter = new QueryFilter("TenantId", QueryOperator.Equal, "2235ed82-41ec-42b2-bd1c-d94fba2cf9cc");
  2. filter.AddCondition("IsDeleted", QueryOperator.Equal, 0);
  3.  
  4. var dbTenant = await
  5. _genericRepository.FromQueryAsync(new QueryOperationConfig
  6. {
  7. Filter = filter
  8. }).GetRemainingAsync();
  9.  
  10. var queryFilter = new List<ScanCondition>();
  11. var scanCondition = new ScanCondition("IsDeleted", ScanOperator.Equal, new object[]{0});
  12. queryFilter.Add(scanCondition);
  13.  
  14.  
  15. var dbTenant2 = await
  16. _genericRepository.LoadAsync("2235ed82-41ec-42b2-bd1c-d94fba2cf9cc", new DynamoDBOperationConfig
  17. {
  18. QueryFilter = queryFilter,
  19. ConditionalOperator = ConditionalOperatorValues.And
  20. });
Add Comment
Please, Sign In to add comment