DataEnumerationQuery Class |
Namespace: Casewhere.Runtime.DSL.Api
public class DataEnumerationQuery
The DataEnumerationQuery type exposes the following members.
Name | Description | |
---|---|---|
BatchSize |
Amount documents per batch. The default value is 100.
| |
DataClassName |
The name of the data class
| |
Filter |
The filter object that is built using FilterBuilder.
| |
ProjectedFields |
The list of fields returned to Client. By default, Casewhere will return all.
| |
SortedFields |
List of sorted fields.
|
Name | Description | |
---|---|---|
FilterBy(DynamicFilter) |
Set query filter. For chaining purpose.
| |
FilterBy(Object) |
Set query filter. For chaining purpose.
| |
For |
The static For method use to create a new instance of DataEnumerationQuery type.
| |
OrderBy |
Set query sorting. For chaining purpose.
| |
ProjectOn |
Set query projection. For chaining purpose.
| |
SetBatchSize |
Set batch size to the existing query.
|
var filter = FilterBuilder.Create().Eq("DepartmentId", ctx.Input.Id).Eq("Active", true).Build(); var query = DataEnumerationQuery.For("Employee") .FilterBy(filter) .ProjectOn("FirstName", "LastName") .OrderBy("FirstName", true); var result = ctx.Use<IDataApi>().Enumerate(query);