Search Results for

    Show / Hide Table of Contents

    Class NpgsqlDataAdapter

    This class represents an adapter from many commands: select, update, insert and delete to fill a .

    Inheritance
    object
    NpgsqlDataAdapter
    Namespace: Npgsql
    Assembly: Npgsql.dll
    Syntax
    public sealed class NpgsqlDataAdapter : DbDataAdapter

    Constructors

    | Improve this Doc View Source

    NpgsqlDataAdapter()

    Default constructor.

    Declaration
    public NpgsqlDataAdapter()
    | Improve this Doc View Source

    NpgsqlDataAdapter(NpgsqlCommand)

    Constructor.

    Declaration
    public NpgsqlDataAdapter(NpgsqlCommand selectCommand)
    Parameters
    Type Name Description
    NpgsqlCommand selectCommand
    | Improve this Doc View Source

    NpgsqlDataAdapter(string, NpgsqlConnection)

    Constructor.

    Declaration
    public NpgsqlDataAdapter(string selectCommandText, NpgsqlConnection selectConnection)
    Parameters
    Type Name Description
    string selectCommandText
    NpgsqlConnection selectConnection
    | Improve this Doc View Source

    NpgsqlDataAdapter(string, string)

    Constructor.

    Declaration
    public NpgsqlDataAdapter(string selectCommandText, string selectConnectionString)
    Parameters
    Type Name Description
    string selectCommandText
    string selectConnectionString

    Properties

    | Improve this Doc View Source

    DeleteCommand

    Delete command.

    Declaration
    public NpgsqlCommand? DeleteCommand { get; set; }
    Property Value
    Type Description
    NpgsqlCommand
    | Improve this Doc View Source

    InsertCommand

    Insert command.

    Declaration
    public NpgsqlCommand? InsertCommand { get; set; }
    Property Value
    Type Description
    NpgsqlCommand
    | Improve this Doc View Source

    SelectCommand

    Select command.

    Declaration
    public NpgsqlCommand? SelectCommand { get; set; }
    Property Value
    Type Description
    NpgsqlCommand
    | Improve this Doc View Source

    UpdateCommand

    Update command.

    Declaration
    public NpgsqlCommand? UpdateCommand { get; set; }
    Property Value
    Type Description
    NpgsqlCommand

    Methods

    | Improve this Doc View Source

    CreateRowUpdatedEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)

    Create row updated event.

    Declaration
    protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
    Parameters
    Type Name Description
    DataRow dataRow
    IDbCommand? command
    System.Data.StatementType statementType
    DataTableMapping tableMapping
    Returns
    Type Description
    RowUpdatedEventArgs
    | Improve this Doc View Source

    CreateRowUpdatingEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)

    Create row updating event.

    Declaration
    protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
    Parameters
    Type Name Description
    DataRow dataRow
    IDbCommand? command
    System.Data.StatementType statementType
    DataTableMapping tableMapping
    Returns
    Type Description
    RowUpdatingEventArgs
    | Improve this Doc View Source

    OnRowUpdated(RowUpdatedEventArgs)

    Raise the RowUpdated event.

    Declaration
    protected override void OnRowUpdated(RowUpdatedEventArgs value)
    Parameters
    Type Name Description
    RowUpdatedEventArgs value
    | Improve this Doc View Source

    OnRowUpdating(RowUpdatingEventArgs)

    Raise the RowUpdating event.

    Declaration
    protected override void OnRowUpdating(RowUpdatingEventArgs value)
    Parameters
    Type Name Description
    RowUpdatingEventArgs value

    Events

    | Improve this Doc View Source

    RowUpdated

    Row updated event.

    Declaration
    public event NpgsqlRowUpdatedEventHandler? RowUpdated
    Event Type
    Type Description
    NpgsqlRowUpdatedEventHandler
    | Improve this Doc View Source

    RowUpdating

    Row updating event.

    Declaration
    public event NpgsqlRowUpdatingEventHandler? RowUpdating
    Event Type
    Type Description
    NpgsqlRowUpdatingEventHandler
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Copyright 2023 The Npgsql Development Team