QueryOptions Class

Specifies options to use for searching entities in ERP.

Namespace: powerGate.Erp.Client
Assembly: powerGate.Erp.Client.dll

Inheritance Hierarchy

System.Object
powerGate.Erp.Client.QueryOptions

Syntax

1
public class QueryOptions

The QueryOptions type exposes the following members.

Constructors

Name

Description

../../../_images/method.ico QueryOptions()

Initializes a new instance of the QueryOptions class.

Properties

Type

Name

Description

../../../_images/prop.ico IEnumerable<string>

Expand

The Navigation property name(s) which should be expanded.

../../../_images/prop.ico string

Filter

The OData filter which will be executed.

../../../_images/prop.ico IEnumerable<OrderBy>

OrderBy

The order of the Item’s. They can be ordered by the property name and/or direction.

../../../_images/prop.ico IEnumerable<string>

Select

Specifiy the properties which should be explicitly requested and returned by the client.

../../../_images/prop.ico int

Top

The amount of items which should be returned.

Remarks

The Filter property allows you to specify a filter with OData syntax. More informations about the OData Filter syntax can be found here.
The OrderBy property allows you to order the list of entities by property name(s) and/or direction (Ascending or Descending).
The Expand property allows you to expand multiple navigation properties. By default, when the expand property is not specified then most Erp-systems reurn the entity without navigation properties.
The Select property lets you receive only those properties which you want to have in the result.

See also

Reference