Class NpgsqlDataAdapter
This class represents an adapter from many commands: select, update, insert and delete to fill a
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public sealed class NpgsqlDataAdapter : DbDataAdapter
Constructors
| Improve this Doc View SourceNpgsqlDataAdapter()
Default constructor.
Declaration
public NpgsqlDataAdapter()
NpgsqlDataAdapter(NpgsqlCommand)
Constructor.
Declaration
public NpgsqlDataAdapter(NpgsqlCommand selectCommand)
Parameters
Type | Name | Description |
---|---|---|
NpgsqlCommand | selectCommand |
NpgsqlDataAdapter(string, NpgsqlConnection)
Constructor.
Declaration
public NpgsqlDataAdapter(string selectCommandText, NpgsqlConnection selectConnection)
Parameters
Type | Name | Description |
---|---|---|
string | selectCommandText | |
NpgsqlConnection | selectConnection |
NpgsqlDataAdapter(string, string)
Constructor.
Declaration
public NpgsqlDataAdapter(string selectCommandText, string selectConnectionString)
Parameters
Type | Name | Description |
---|---|---|
string | selectCommandText | |
string | selectConnectionString |
Properties
| Improve this Doc View SourceDeleteCommand
Delete command.
Declaration
public NpgsqlCommand? DeleteCommand { get; set; }
Property Value
Type | Description |
---|---|
NpgsqlCommand |
InsertCommand
Insert command.
Declaration
public NpgsqlCommand? InsertCommand { get; set; }
Property Value
Type | Description |
---|---|
NpgsqlCommand |
SelectCommand
Select command.
Declaration
public NpgsqlCommand? SelectCommand { get; set; }
Property Value
Type | Description |
---|---|
NpgsqlCommand |
UpdateCommand
Update command.
Declaration
public NpgsqlCommand? UpdateCommand { get; set; }
Property Value
Type | Description |
---|---|
NpgsqlCommand |
Methods
| Improve this Doc View SourceCreateRowUpdatedEvent(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 |
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 |
OnRowUpdated(RowUpdatedEventArgs)
Raise the RowUpdated event.
Declaration
protected override void OnRowUpdated(RowUpdatedEventArgs value)
Parameters
Type | Name | Description |
---|---|---|
RowUpdatedEventArgs | value |
OnRowUpdating(RowUpdatingEventArgs)
Raise the RowUpdating event.
Declaration
protected override void OnRowUpdating(RowUpdatingEventArgs value)
Parameters
Type | Name | Description |
---|---|---|
RowUpdatingEventArgs | value |
Events
| Improve this Doc View SourceRowUpdated
Row updated event.
Declaration
public event NpgsqlRowUpdatedEventHandler? RowUpdated
Event Type
Type | Description |
---|---|
NpgsqlRowUpdatedEventHandler |
RowUpdating
Row updating event.
Declaration
public event NpgsqlRowUpdatingEventHandler? RowUpdating
Event Type
Type | Description |
---|---|
NpgsqlRowUpdatingEventHandler |