--- substitutions: method: |- ```{image} ico/method.ico ``` prop: |- ```{image} ico/prop.ico ``` --- # 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 ```{code-block} CSharp :linenos: public class QueryOptions ``` The QueryOptions type exposes the following members. ## Constructors | Name | Description | |---------------------------|-------------------------------------------------------| | {{method}} QueryOptions() | Initializes a new instance of the QueryOptions class. | ## Properties | Type | Name | Description | |--------------------------------------------|---------|------------------------------------------------------------------------------------------| | {{prop}} IEnumerable\ | Expand | The Navigation property name(s) which should be expanded. | | {{prop}} string | Filter | The OData filter which will be executed. | | {{prop}} IEnumerable\<[OrderBy](orderby)\> | OrderBy | The order of the Item's. They can be ordered by the property name and/or direction. | | {{prop}} IEnumerable\ | Select | Specifiy the properties which should be explicitly requested and returned by the client. | | {{prop}} 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](http://www.odata.org/documentation/odata-version-3-0/odata-version-3-0-core-protocol/).\ 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** - [powerGate.Erp.Client namespace](/code_reference/net_library)