# Query Class

Contains a LINQ query in a serializable format.

Namespace: [Radzen](https://blazor.radzen.com/docs/api/Radzen.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- Query

## Syntax

```csharp
public class Query
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public Query()` | Contains a LINQ query in a serializable format. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Expand | `string` | Gets or sets the expand. |
| Filter | `string` | Gets the filter expression as a string. |
| FilterParameters | `Object[]` | Gets or sets the filter parameters. |
| Filters | `IEnumerable<FilterDescriptor>` | Gets the filter expression as a collection of filter descriptors. |
| OrderBy | `string` | Gets or sets the order by. |
| Select | `string` | Gets or sets the select. |
| Skip | `int?` | Gets or sets the skip. |
| Sorts | `IEnumerable<SortDescriptor>` | Gets the sort expression as a collection of sort descriptors. |
| Top | `int?` | Gets or sets the top. |

## Methods

| Method | Returns | Description |
|------|---------|-------------|
| `ToUrl(string url)` | `string` | Converts the query to OData query format. Parameters: `url`: The URL. Returns: System.String. |

