Show / Hide Table of Contents

    Interface IBulkUpdate

    Interface for fast data updating in database.

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

    Properties

    DestinationTableName

    Destination table name in database.

    Declaration
    string DestinationTableName { get; set; }
    Property Value
    Type Description
    System.String

    PrimaryKeyColumn

    Primary key.

    Declaration
    string PrimaryKeyColumn { get; set; }
    Property Value
    Type Description
    System.String

    TempTableAction

    Action, executed on temporary table.

    Declaration
    Action<IDbConnection, IDbTransaction, string> TempTableAction { get; set; }
    Property Value
    Type Description
    System.Action<System.Data.IDbConnection, System.Data.IDbTransaction, System.String>
    Remarks

    Action, which will be executed on temp table (additional modification of data).

    Methods

    Update(IBulkActionDataReader)

    Updates all data from source reader.

    Declaration
    void Update(IBulkActionDataReader reader)
    Parameters
    Type Name Description
    IBulkActionDataReader reader

    Data source.

    Update(DataTable)

    Updates all data from table table.

    Declaration
    void Update(DataTable table)
    Parameters
    Type Name Description
    System.Data.DataTable table

    Data source.

    Update(IDataReader)

    Updates all data from source reader.

    Declaration
    void Update(IDataReader reader)
    Parameters
    Type Name Description
    System.Data.IDataReader reader

    Data source.

    UpdateAsync(IBulkActionDataReader)

    Asynchronously updates all data from source reader.

    Declaration
    Task UpdateAsync(IBulkActionDataReader reader)
    Parameters
    Type Name Description
    IBulkActionDataReader reader

    Data source.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous Insert operation.

    UpdateAsync(DataTable)

    Asynchronously updates all data from table table.

    Declaration
    Task UpdateAsync(DataTable table)
    Parameters
    Type Name Description
    System.Data.DataTable table

    Data source.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous Insert operation.

    UpdateAsync(IDataReader)

    Asynchronously updates all data from source reader.

    Declaration
    Task UpdateAsync(IDataReader reader)
    Parameters
    Type Name Description
    System.Data.IDataReader reader

    Data source.

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task that represents the asynchronous Insert operation.

    Back to top KROS a.s.