Show / Hide Table of Contents

Class NpgsqlDataAdapter

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

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

Constructors

NpgsqlDataAdapter()

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
System.String selectCommandText
NpgsqlConnection selectConnection

NpgsqlDataAdapter(String, String)

Constructor.

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

Properties

DeleteCommand

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

CreateRowUpdatedEvent(DataRow, IDbCommand, Data.StatementType, DataTableMapping)

Create row updated event.

Declaration
protected override RowUpdatedEventArgs CreateRowUpdatedEvent(DataRow dataRow, IDbCommand command, Data.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, Data.StatementType, DataTableMapping)

Create row updating event.

Declaration
protected override RowUpdatingEventArgs CreateRowUpdatingEvent(DataRow dataRow, IDbCommand command, Data.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

RowUpdated

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
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX