Npgsql API Docs

Npgsql Namespace

The Npgsql contains the main classes.

Namespace hierarchy

Classes

Class Description
NpgsqlCommand Represents a SQL statement or function (stored procedure) to execute against a PostgreSQL database. This class cannot be inherited.
NpgsqlCommandBuilder This class is responsible to create database commands for automatic insert, update and delete operations.
NpgsqlConnection This class represents a connection to a PostgreSQL server.
NpgsqlDataAdapter This class represents an adapter from many commands: select, update, insert and delete to fill Datasets.
NpgsqlDataReader Provides a means of reading a forward-only stream of rows from a PostgreSQL backend. This class cannot be inherited.
NpgsqlError This class represents the ErrorResponse and NoticeResponse message sent from PostgreSQL server.
NpgsqlEventLog This class handles all the Npgsql event and debug logging
NpgsqlException The exception that is thrown when the PostgreSQL backend reports errors.
NpgsqlNoticeEventArgs EventArgs class to send Notice parameters, which are just NpgsqlError's in a lighter context.
NpgsqlNotificationEventArgs EventArgs class to send Notification parameters.
NpgsqlParameter This class represents a parameter to a command that will be sent to server
NpgsqlParameterCollection Represents a collection of parameters relevant to a NpgsqlCommand as well as their respective mappings to columns in a DataSet. This class cannot be inherited.
NpgsqlTransaction Represents a transaction to be made in a PostgreSQL database. This class cannot be inherited.
ServerVersion Represent the backend server version.

Delegates

Delegate Description
NoticeEventHandler Represents the method that handles the Notice events.
NotificationEventHandler Represents the method that handles the Notification events.
NpgsqlRowUpdatedEventHandler Represents the method that handles the RowUpdated events.
NpgsqlRowUpdatingEventHandler Represents the method that handles the RowUpdating events.

Enumerations

Enumeration Description
LogLevel The level of verbosity of the NpgsqlEventLog
ProtocolVersion Represent the frontend/backend protocol version.