The methods of the NpgsqlConnection class are listed below. For a complete list of NpgsqlConnection class members, see the NpgsqlConnection Members topic.
BeginTransaction | Overloaded. Begins a database transaction. |
ChangeDatabase | This method changes the current database by disconnecting from the actual database and connecting to the specified. |
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) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose (inherited from Component) | Releases all resources used by the Component. |
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object. |
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetType (inherited from Object) | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
Open | Opens a database connection with the property settings specified by the ConnectionString. |
ToString (inherited from Component) |
NpgsqlConnection Class | Npgsql Namespace