Class Query
- Namespace
- Dynamicweb.Ecommerce.Searching
- Assembly
- Dynamicweb.Ecommerce.dll
Represents a query.
- Inheritance
-
Query
- Inherited Members
Properties
IncludeExtendedVariants
Gets or sets a value indicating whether extended variants are included in result.
Property Value
Remarks
true
if extended variants are included in result; otherwise, false
.
QueryCriteria
Gets or sets the criteria.
Property Value
Methods
Run()
Runs the query against the database.
Returns
- Product
Collection Returns a Product
Collection containing the products matching the query.
Run(bool)
Runs the specified is frontend.
Parameters
isFrontend
boolif set to
true
query is run as in a frontend context.
Returns
- Product
Collection Returns a Product
Collection containing the products matching the query.
Run(bool, bool)
Runs the specified is front end.
Parameters
isFrontEnd
boolif set to
true
query is run as in a frontend context.useAssortments
boolif set to
true
assortments are used to filter the product collection.
Returns
- Product
Collection Returns a Product
Collection containing the products matching the query.