Npgsql Api Docs

NpgsqlConnection Methods

The methods of the NpgsqlConnection class are listed below. For a complete list of NpgsqlConnection class members, see the NpgsqlConnection Members topic.

Public Static (Shared) Methods

ClearAllPools 

Public Instance Methods

BeginTransactionOverloaded. Begins a database transaction.
ChangeDatabase This method changes the current database by disconnecting from the actual database and connecting to the specified.
ClearPool 
Clone Create a new connection based on this one.
Close Releases the connection to the database. If the connection is pooled, it will be made available for re-use. If it is non-pooled, the actual connection will be shutdown.
CreateCommand Creates and returns a NpgsqlCommand object associated with the NpgsqlConnection.
CreateObjRef (inherited from MarshalByRefObject) 
Dispose (inherited from Component) 
EnlistTransaction 
Equals (inherited from Object) 
GetHashCode (inherited from Object) 
GetLifetimeService (inherited from MarshalByRefObject) 
GetSchemaOverloaded. Returns the supported collections
GetType (inherited from Object) 
InitializeLifetimeService (inherited from MarshalByRefObject) 
Open Opens a database connection with the property settings specified by the ConnectionString.
ToString (inherited from Component) 

See Also

NpgsqlConnection Class | Npgsql Namespace