Show / Hide Table of Contents

    Class DataTransferExtensions

    This is an extensions implementation of the most common methods on the DataTransfer class.

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

    Methods

    | Improve this Doc

    ToColumns(IDataReader)

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

    Declaration
    public static DataTransferColumnCollection ToColumns(this 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

    ToRows(IDataReader)

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

    Declaration
    public static DataTransferRowCollection ToRows(this 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