DataSourceEnumerationQuery Class
|
The DataSourceEnumerationQuery contains Filter, ProjectedFields, SortedFields, DataSourceName, BatchSize data.
These info used to build query directly to database. The one create by a static method DataSourceEnumerationQuery.For().
Inheritance Hierarchy
SystemObject
Casewhere.Runtime.DSL.ApiDataSourceEnumerationQuery
Namespace: Casewhere.Runtime.DSL.ApiAssembly: Casewhere.Runtime (in Casewhere.Runtime.dll) Version: 2.8.5.0
Syntaxpublic class DataSourceEnumerationQuery
The DataSourceEnumerationQuery type exposes the following members.
Properties
Methods | 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.
|
 | GeoNear |
Create a geospatial queries that find documents near a specific location, taking distance constraints into account.
|
 | GeoNearSphere |
Create a geospatial query for finding documents near a specific geographic location, emphasizing spherical calculations.
|
 | Near |
Create a geospatial queries that find documents near a specific location, taking distance constraints into account.
|
 | NearSphere |
Create a geospatial query for finding documents near a specific geographic location, emphasizing spherical calculations.
|
 | OrderBy |
Set query sorting. For chaining purpose.
|
 | ProjectOn |
Set query projection. For chaining purpose.
|
 | SetBatchSize |
Set batch size to the existing query.
|
 | SetHintIndex |
Specify a hint index name for this query.
|
 | ToEnumerationDataSourceQuery | |
 | WithCustomCollation |
Specify a custom collation for this query. If not specified, the data source's collation will be used, if not specified too, the default collation will be used.
|
Top
Examplevar 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);
See Also