Dataservice BoolFilterDesciptor.Should

What does the BoolFilterDesciptor.Should do compared to BoolFilterDesciptor.Must?

query.Filter(f => f.Bool(boolFilter => boolFilter.Must(bf => bf.Field("MyField", "eq", "MyValue"))));

compared to

query.Filter(f => f.Bool(boolFilter => boolFilter.Should(bf => bf.Field("MyField", "eq", "MyValue"))));

Sql translation for the bool filter:

  • Should = OR
  • Must = AND
  • MustNot = AND NOT
1 Like