Table of Contents

Class NpgsqlDataAdapter

Namespace
Npgsql
Assembly
Npgsql.dll

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

public sealed class NpgsqlDataAdapter : DbDataAdapter, IComponent, IDisposable, IDbDataAdapter, IDataAdapter, ICloneable
Inheritance
NpgsqlDataAdapter
Implements
Inherited Members

Constructors

NpgsqlDataAdapter()

Default constructor.

public NpgsqlDataAdapter()

NpgsqlDataAdapter(NpgsqlCommand)

Constructor.

public NpgsqlDataAdapter(NpgsqlCommand selectCommand)

Parameters

selectCommand NpgsqlCommand

NpgsqlDataAdapter(string, NpgsqlConnection)

Constructor.

public NpgsqlDataAdapter(string selectCommandText, NpgsqlConnection selectConnection)

Parameters

selectCommandText string
selectConnection NpgsqlConnection

NpgsqlDataAdapter(string, string)

Constructor.

public NpgsqlDataAdapter(string selectCommandText, string selectConnectionString)

Parameters

selectCommandText string
selectConnectionString string

Properties

DeleteCommand

Delete command.

public NpgsqlCommand? DeleteCommand { get; set; }

Property Value

NpgsqlCommand

InsertCommand

Insert command.

public NpgsqlCommand? InsertCommand { get; set; }

Property Value

NpgsqlCommand

SelectCommand

Select command.

public NpgsqlCommand? SelectCommand { get; set; }

Property Value

NpgsqlCommand

UpdateCommand

Update command.

public NpgsqlCommand? UpdateCommand { get; set; }

Property Value

NpgsqlCommand

Methods

CreateRowUpdatedEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)

Create row updated event.

protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)

Parameters

dataRow DataRow
command IDbCommand
statementType StatementType
tableMapping DataTableMapping

Returns

RowUpdatedEventArgs

CreateRowUpdatingEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)

Create row updating event.

protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)

Parameters

dataRow DataRow
command IDbCommand
statementType StatementType
tableMapping DataTableMapping

Returns

RowUpdatingEventArgs

OnRowUpdated(RowUpdatedEventArgs)

Raise the RowUpdated event.

protected override void OnRowUpdated(RowUpdatedEventArgs value)

Parameters

value RowUpdatedEventArgs

OnRowUpdating(RowUpdatingEventArgs)

Raise the RowUpdating event.

protected override void OnRowUpdating(RowUpdatingEventArgs value)

Parameters

value RowUpdatingEventArgs

Events

RowUpdated

Row updated event.

public event NpgsqlRowUpdatedEventHandler? RowUpdated

Event Type

NpgsqlRowUpdatedEventHandler

RowUpdating

Row updating event.

public event NpgsqlRowUpdatingEventHandler? RowUpdating

Event Type

NpgsqlRowUpdatingEventHandler