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
helperICrudHelperComponent<T>The helper component for CRUD operations.
pageSizelongThe number of items per page.
Returns
- IEnumerable<IEnumerable<T>>
An enumerable collection of all data.
Type Parameters
TThe 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
helperISelectHelperComponent<T, K>The helper component used to retrieve data.
fieldsSelectedFields<T>The fields to retrieve.
pageSizeintThe size of each page to retrieve.
Returns
- IEnumerable<IEnumerable<PartialObject<T, K>>>
An enumerable collection of pages with partial objects.
Type Parameters
TThe type of the data elements.
KThe type of the identifier for the data elements.
Exceptions
- ArgumentNullException
Thrown when
helperorfieldsis null.