Npgsql Api Docs |

# Npgsql Namespace

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.
NpgsqlConnectionStringBuilder |
NpgsqlCopyFormat | Represents information about COPY operation data transfer format as returned by server.
NpgsqlCopyIn | Represents a PostgreSQL COPY FROM STDIN operation with a corresponding SQL statement to execute against a PostgreSQL database and an associated stream used to read data from (if provided by user) or for writing it (when generated by driver). Eg. new NpgsqlCopyIn("COPY mytable FROM STDIN", connection, streamToRead).Start();
NpgsqlCopyOut | Represents a PostgreSQL COPY TO STDOUT operation with a corresponding SQL statement to execute against a PostgreSQL database and an associated stream used to write results to (if provided by user) or for reading the results (when generated by driver). Eg. new NpgsqlCopyOut("COPY (SELECT * FROM mytable) TO STDOUT", connection, streamToWrite).Start();
NpgsqlCopySerializer | Writes given objects into a stream for PostgreSQL COPY in default copy format (not CSV or BINARY).
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.
NpgsqlFactory | A factory to create instances of various Npgsql objects.
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 | Obsolete. Represent the backend server version. As this class offers no functionality beyond that offered by Version it has been deprecated in favour of that class.

### 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
--- | ---
FrontEndMessageCode |
Keywords |
LogLevel | The level of verbosity of the NpgsqlEventLog
ProtocolVersion | Represent the frontend/backend protocol version.
ServerVersionCode |
SslMode |