Table of Contents

Interface IQuery<TResult>

Namespace
Shift.Common
Assembly
Shift.Common.dll

Defines a query with a strongly-typed result.

public interface IQuery<TResult>

Type Parameters

TResult
Extension Methods

Properties

Filter

Identifies a subset of items and/or properties in the query result.

QueryFilter Filter { get; set; }

Property Value

QueryFilter

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).

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.

Origin Origin { get; set; }

Property Value

Origin

Texts

User-friendly display text for each GUID-value query property.

Dictionary<Guid, string> Texts { get; set; }

Property Value

Dictionary<Guid, string>