NpgsqlConnection
|
Overloaded. Initializes a new instance of the NpgsqlConnection class. |
BackendProtocolVersion | Protocol version in use. This can only be called when there is an active connection. |
ConnectionString | Gets or sets the string used to connect to a PostgreSQL database. Valid values are: Server: Address/Name of Postgresql Server; Port: Port to connect to; Protocol: Protocol version to use, instead of automatic; Integer 2 or 3; Database: Database name. Defaults to user name if not specified; User: User name; Password: Password for clear text authentication; SSL: True or False. Controls whether to attempt a secure connection. Default = False; Pooling: True or False. Controls whether connection pooling is used. Default = True; MinPoolSize: Min size of connection pool; MaxPoolSize: Max size of connection pool; Encoding: Encoding to be used; Timeout: Time to wait for connection open in seconds. |
ConnectionTimeout | Gets the time to wait while trying to establish a connection before terminating the attempt and generating an error. |
Container (inherited from Component) | Gets the IContainer that contains the Component. |
Database | Gets the name of the current database or the database to be used after a connection is opened. |
Host | Backend server host name. |
Port | Backend server port. |
ServerVersion | Version of the PostgreSQL backend. This can only be called when there is an active connection. |
Site (inherited from Component) | Gets or sets the ISite of the Component. |
SSL | If true, the connection will attempt to use SSL. |
State | Gets the current state of the connection. |
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) |
CertificateSelectionCallback | Mono.Security.Protocol.Tls.CertificateSelectionCallback delegate. |
CertificateValidationCallback | Mono.Security.Protocol.Tls.CertificateValidationCallback delegate. |
Disposed (inherited from Component) | Adds an event handler to listen to the Disposed event on the component. |
Notice | Occurs on NoticeResponses from the PostgreSQL backend. |
Notification | Occurs on NotificationResponses from the PostgreSQL backend. |
PrivateKeySelectionCallback | Mono.Security.Protocol.Tls.PrivateKeySelectionCallback delegate. |
NpgsqlConnection Class | Npgsql Namespace