Table of Contents

Class Query

Namespace
Dynamicweb.Content.Items.Queries
Assembly
Dynamicweb.dll

Represents an item query.

public class Query
Inheritance
Query
Inherited Members

Constructors

Query()

Initializes a new instance of an object.

public Query()

Properties

Amount

Gets or sets the amount of records to select.

public int Amount { get; set; }

Property Value

int

Remarks

The value lower or equal to zero indicates that all results will be selected.

Fields

Gets or sets the list of fields to be selected.

public IEnumerable<string> Fields { get; set; }

Property Value

IEnumerable<string>

Remarks

Empty list or null value indicates that all fields will be selected.

Offset

Gets or sets the number of results so skip during the selection process.

public int Offset { get; set; }

Property Value

int

Remarks

The value lower or equal to zero indicates that no items will be skipped.

OrderBy

Gets or sets the collection of objects specifying how results must be ordered.

public OrderByCollection OrderBy { get; set; }

Property Value

OrderByCollection

Remarks

Empty list or null value indicates that results will be ordered by row Id.

Where

Gets or sets the collection of objects specifying where conditions.

public RulesGroupCollection Where { get; set; }

Property Value

RulesGroupCollection

Remarks

Empty list or null value indicates that there are no additional where conditions.

To top