DataSourceEnumerationQuery Class |
Namespace: Casewhere.Runtime.DSL.Api
public class DataSourceEnumerationQuery
The DataSourceEnumerationQuery type exposes the following members.
Name | Description | |
---|---|---|
BatchSize |
Amount documents per batch. The default value is 100.
| |
DataSourceName |
The name of the data source
| |
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 DataSourceEnumerationQuery type.
| |
OrderBy |
Set query sorting. For chaining purpose.
| |
ProjectOn |
Set query projection. For chaining purpose.
| |
SetBatchSize |
Set batch size to the existing query.
| |
ToEnumerationDataSourceQuery |
var filter = FilterBuilder.Create().Eq("DepartmentId", ctx.Input.Id).Eq("Active", true).Build(); var query = DataSourceEnumerationQuery.For("Employee") .FilterBy(filter) .ProjectOn("FirstName", "LastName") .OrderBy("FirstName", true); var result = ctx.Use<IDataApi>().Enumerate(query);