Show / Hide Table of Contents

    Class DataTransfer

    Provides a way to convert an System.Data.IDataReader implementation to a table-like data transfer object.

    Inheritance
    System.Object
    DataTransfer
    Namespace: Cuemon.Data
    Assembly: Cuemon.Data.dll
    Syntax
    public static class DataTransfer

    Methods

    | Improve this Doc

    GetColumns(IDataReader)

    Converts the specified and read-initialized reader implementation to a column-like data transfer object collection.

    Declaration
    public static DataTransferColumnCollection GetColumns(IDataReader reader)
    Parameters
    Type Name Description
    System.Data.IDataReader reader

    The read-initialized reader to be converted.

    Returns
    Type Description
    DataTransferColumnCollection

    A DataTransferColumnCollection that is the result of the specified and read-initialized reader.

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null.

    System.ArgumentException

    reader is closed.

    System.InvalidOperationException

    Invalid attempt to read from reader when no data is present.

    | Improve this Doc

    GetPagedRows(PagedSettings, Func<PagedSettings, IEnumerable<DataTransferRow>>, Func<PagedSettings, Int32>)

    Retrieves a paged, table-like data transfer object collection from the specified selector.

    Declaration
    public static PagedCollection<DataTransferRow> GetPagedRows(PagedSettings settings, Func<PagedSettings, IEnumerable<DataTransferRow>> selector, Func<PagedSettings, int> counter)
    Parameters
    Type Name Description
    PagedSettings settings

    The PagedSettings that will be applied to the PagedCollection<T> result of this method.

    System.Func<PagedSettings, System.Collections.Generic.IEnumerable<DataTransferRow>> selector

    The function delegate that will determine the PagedCollection<T> result of this method.

    System.Func<PagedSettings, System.Int32> counter

    The function delegate that will determine the total number of rows in a data-source from the specified settings.

    Returns
    Type Description
    PagedCollection<DataTransferRow>

    A PagedCollection<T> that is the result of the specified selector with associated settings.

    | Improve this Doc

    GetRows(IDataReader)

    Converts the specified reader implementation to a table-like data transfer object collection.

    Declaration
    public static DataTransferRowCollection GetRows(IDataReader reader)
    Parameters
    Type Name Description
    System.Data.IDataReader reader

    The reader to be converted.

    Returns
    Type Description
    DataTransferRowCollection

    A DataTransferRowCollection that is the result of the specified reader.

    Exceptions
    Type Condition
    System.ArgumentNullException

    reader is null.

    System.ArgumentException

    reader is closed.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX