Table of Contents

Method ReadAllPaged

Namespace
Skyline.DataMiner.Utils.DOM.Extensions
Assembly
Skyline.DataMiner.Utils.DOM.dll

ReadAllPaged<T>(ICrudHelperComponent<T>, long)

Reads all items in a paged manner with the specified page size.

public static IEnumerable<IEnumerable<T>> ReadAllPaged<T>(this ICrudHelperComponent<T> helper, long pageSize = 500) where T : DataType

Parameters

helper ICrudHelperComponent<T>

The helper component for CRUD operations.

pageSize long

The number of items per page.

Returns

IEnumerable<IEnumerable<T>>

An enumerable collection of all data.

Type Parameters

T

The type of data to read.

Exceptions

ArgumentNullException

Thrown when helper is null.

ReadAllPaged<T, K>(ISelectHelperComponent<T, K>, SelectedFields<T>, int)

Reads a selected subset of fields of all items in a paged manner with the specified page size.

public static IEnumerable<IEnumerable<PartialObject<T, K>>> ReadAllPaged<T, K>(this ISelectHelperComponent<T, K> helper, SelectedFields<T> fields, int pageSize = 500) where T : IManagerIdentifiableObject<K>, DataType where K : IEquatable<K>

Parameters

helper ISelectHelperComponent<T, K>

The helper component used to retrieve data.

fields SelectedFields<T>

The fields to retrieve.

pageSize int

The size of each page to retrieve.

Returns

IEnumerable<IEnumerable<PartialObject<T, K>>>

An enumerable collection of pages with partial objects.

Type Parameters

T

The type of the data elements.

K

The type of the identifier for the data elements.

Exceptions

ArgumentNullException

Thrown when helper or fields is null.

Advanced search syntax