Show / Hide Table of Contents

    Interface IBulkActionDataReader

    Interface for data source used in bulk actions (IBulkInsert, IBulkUpdate).

    Namespace: Kros.Data.BulkActions
    Assembly: Kros.Utils.dll
    Syntax
    public interface IBulkActionDataReader : IDisposable

    Properties

    FieldCount

    Columns count of the data row.

    Declaration
    int FieldCount { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    GetName(Int32)

    Returns column name at position i.

    Declaration
    string GetName(int i)
    Parameters
    Type Name Description
    System.Int32 i

    Index of column.

    Returns
    Type Description
    System.String

    Column name.

    Exceptions
    Type Condition
    System.IndexOutOfRangeException

    Zadaný index bol mimo rozsah stĺpcov 0 až FieldCount.

    GetOrdinal(String)

    Return index of column with name name.

    Declaration
    int GetOrdinal(string name)
    Parameters
    Type Name Description
    System.String name

    Column name.

    Returns
    Type Description
    System.Int32

    Index of column.

    GetValue(Int32)

    Returns value of column at index i.

    Declaration
    object GetValue(int i)
    Parameters
    Type Name Description
    System.Int32 i

    Column index.

    Returns
    Type Description
    System.Object

    Object - value of column.

    Exceptions
    Type Condition
    System.IndexOutOfRangeException

    Defined index is not between 0 and FieldCount.

    Read()

    Moves reader to next record.

    Declaration
    bool Read()
    Returns
    Type Description
    System.Boolean

    true if next record exists and reader is moved, false if next record does not exist.

    Back to top KROS a.s.