QueryOptions Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Query options for result paging etc.

public class QueryOptions : ICloneable
Inheritance:
System.Object → QueryOptions

Constructors

QueryOptions()

Properties

Count Gets or sets a value indicating whether the response should include the total number of items in the result.
CountOnly Gets or sets a value indicating whether the search should only return the number of matching items.
Layout Gets or sets the preferred layout when rendering the result.
OrderBy Gets or sets the sort properties and sort direction (ascending or descending).
Skip Gets or sets the number of items to skip before returning.
Top Gets or sets the number of items to return, null returns all items.

Methods

Clone() Create a deep copy of the current object.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.