Table of Contents

Class ResultGeneratorBase

Namespace
Dynamicweb.Data.Firehose.ResultGenerators
Assembly
Dynamicweb.Core.dll

Provides a base class for generating query results. Results can be paged using the skip and take parameters, if the underlying SQL query supports paging, such as SELECT.

public abstract class ResultGeneratorBase
Inheritance
ResultGeneratorBase
Derived
Inherited Members

Remarks

Inherit from this class to implement custom logic for retrieving subsets of query results. Implementations should define how results are fetched and paged based on the provided parameters.

Properties

Skip

Gets or sets the number of items to skip before starting to return results.

public int? Skip { get; set; }

Property Value

int?

Remarks

Use this property to implement paging or to retrieve a subset of results by skipping a specified number of items at the beginning of the collection. If the value is null, no items are skipped.

Take

Gets or sets the maximum number of items to return in a query result.

public int? Take { get; set; }

Property Value

int?

Remarks

If set to null, no limit is applied to the number of items returned. This property is typically used to implement pagination or to restrict the size of result sets.

Methods

GetResult()

Executes the query and returns the result as a RowQueryResult instance.

public abstract RowQueryResult GetResult()

Returns

RowQueryResult

A RowQueryResult containing the data produced by the query execution.

To top