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
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
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
isFrontendboolif set to
truequery 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
isFrontEndboolif set to
truequery is run as in a frontend context.useAssortmentsboolif set to
trueassortments are used to filter the product collection.
Returns
- ProductCollection
Returns a ProductCollection containing the products matching the query.