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
stringselectConnection
NpgsqlConnection
NpgsqlDataAdapter(string, string)
Constructor.
public NpgsqlDataAdapter(string selectCommandText, string selectConnectionString)
Parameters
Properties
DeleteCommand
Delete command.
public NpgsqlCommand? DeleteCommand { get; set; }
Property Value
InsertCommand
Insert command.
public NpgsqlCommand? InsertCommand { get; set; }
Property Value
SelectCommand
Select command.
public NpgsqlCommand? SelectCommand { get; set; }
Property Value
UpdateCommand
Update command.
public NpgsqlCommand? UpdateCommand { get; set; }
Property Value
Methods
CreateRowUpdatedEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)
Create row updated event.
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
Parameters
dataRow
DataRowcommand
IDbCommandstatementType
StatementTypetableMapping
DataTableMapping
Returns
CreateRowUpdatingEvent(DataRow, IDbCommand?, StatementType, DataTableMapping)
Create row updating event.
protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand? command, StatementType statementType, DataTableMapping tableMapping)
Parameters
dataRow
DataRowcommand
IDbCommandstatementType
StatementTypetableMapping
DataTableMapping
Returns
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
RowUpdating
Row updating event.
public event NpgsqlRowUpdatingEventHandler? RowUpdating