Table of Contents

Class Query

Namespace
Dynamicweb.Ecommerce.Searching
Assembly
Dynamicweb.Ecommerce.dll

Represents a query.

public class Query
Inheritance
Query
Inherited Members

Properties

IncludeExtendedVariants

Gets or sets a value indicating whether extended variants are included in result.

public bool IncludeExtendedVariants { get; set; }

Property Value

bool

Remarks

true if extended variants are included in result; otherwise, false.

QueryCriteria

Gets or sets the criteria.

public List<QueryCriterion> QueryCriteria { get; set; }

Property Value

List<QueryCriterion>

Methods

Run()

Runs the query against the database.

public ProductCollection Run()

Returns

ProductCollection

Returns a ProductCollection containing the products matching the query.

Run(bool)

Runs the specified is frontend.

public ProductCollection Run(bool isFrontend)

Parameters

isFrontend bool

if set to true query is run as in a frontend context.

Returns

ProductCollection

Returns a ProductCollection containing the products matching the query.

Run(bool, bool)

Runs the specified is front end.

public ProductCollection Run(bool isFrontEnd, bool useAssortments)

Parameters

isFrontEnd bool

if set to true query is run as in a frontend context.

useAssortments bool

if set to true assortments are used to filter the product collection.

Returns

ProductCollection

Returns a ProductCollection containing the products matching the query.

To top