Skip to main content.

Operations

Grouping

Service Query supports the following grouping expressions:

  • And
    • Service Query will automatically and an And() expressions to queries that are missing an expression
  • Or
  • Begin
  • End
    • Service Query will automatically and an End() expressions to queries that are missing the final expression

And

Example
var builder = ServiceQueryRequestBuilder.New().
.IsGreaterThan("id","1")
.And()
.IsLessThan("id","10")
Example (Equivelent)
var builder = ServiceQueryRequestBuilder.New().
.IsGreaterThan("id","1")
//.And() This also works
.IsLessThan("id","10")

Or

Example
var builder = ServiceQueryRequestBuilder.New().
.IsGreaterThan("id","1")
.Or()
.IsLessThan("id","10")

Begin and End

Example
var builder = ServiceQueryRequestBuilder.New().
.Begin()
.IsGreaterThan("id","1")
.And()
.IsLessThan("id","10")
.End();
.Or();
.Begin()
.IsGreaterThan("id","20")
.And()
.IsLessThan("id","30")
.End();