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.

    GetString(Int32)

    Gets the value of the specified column as an instance of System.String.

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

    The zero-based column ordinal.

    Returns
    Type Description
    System.String

    The value of the specified 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.

    IsDBNull(Int32)

    Gets a value that indicates whether the column contains non-existent or missing values.

    Declaration
    bool IsDBNull(int i)
    Parameters
    Type Name Description
    System.Int32 i

    The zero-based column ordinal.

    Returns
    Type Description
    System.Boolean

    true if the specified column value is System.DBNull or null, otherwise false.

    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.