Class Query<TResult>
Base class implementation for the IQuery interface.
public class Query<TResult> : IQuery<TResult>
Type Parameters
TResult
- Inheritance
-
Query<TResult>
- Implements
-
IQuery<TResult>
- Derived
- Inherited Members
- Extension Methods
Constructors
Query()
public Query()
Properties
Filter
Identifies a subset of items and/or properties in the query result.
public QueryFilter Filter { get; set; }
Property Value
Remarks
The property names and values of a query object determine its criteria. When a query is executed, the server finds all matching database records and then uses a filter to determine the specific subset of data returned to the caller. A filter indicates the requested page number and the page size. A filter also specifies sorting options and properties to include or exclude from each page. (In other words, a filter specifies the rows and columns in paged subset of the data that matches the query criteria.)
Identifier
Unique identifier for the query (optional).
public Guid? Identifier { get; set; }
Property Value
- Guid?
Remarks
Similar to the unique identifier for a command, this is used to track a specific instance of a query. For example, a query that takes a long time to run could be executed in a background service, and the identifier could be used to retrieve the result at a future time.
Origin
Identifies the origin for the query.
public Origin Origin { get; set; }
Property Value
Texts
User-friendly display text for each GUID-value query property.
public Dictionary<Guid, string> Texts { get; set; }