Property | Type | Description | |
---|---|---|---|
CheckConnectionClosed | void | ||
CheckConnectionOpen | void | ||
CheckNotDisposed | void | ||
CopyConnectionStringBuilder | |||
DefaultCertificateSelectionCallback | |||
DefaultCertificateValidationCallback | bool | ||
DefaultPrivateKeySelectionCallback | |||
DefaultProvideClientCertificatesCallback | void | ||
DefaultValidateRemoteCertificateCallback | bool | ||
EmergencyClose | void | ||
ICloneable | Object | ||
Init | void | ||
LoadConnectionStringBuilder | void | ||
LoadConnectionStringBuilder | void | ||
LogConnectionString | void | ||
OnNotice | void | ||
OnNotification | void | ||
PromotableLocalTransactionEnded | void | ||
ReallyClose | void | ||
RefreshConnectionString | void |
Method | Description | |
---|---|---|
BeginTransaction ( ) : |
Begins a database transaction. Currently there's no support for nested transactions. |
|
BeginTransaction ( System.Data.IsolationLevel level ) : |
Begins a database transaction with the specified isolation level. Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions. |
|
ChangeDatabase ( String dbName ) : void |
This method changes the current database by disconnecting from the actual database and connecting to the specified.
|
|
ClearAllPools ( ) : void |
Clear all connection pools.
|
|
ClearPool ( ) : void |
Clear connection pool.
|
|
Clone ( ) : |
Create a new connection based on this one.
|
|
Close ( ) : void |
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
|
|
EnlistTransaction ( |
Enlist transation.
|
|
GetSchema ( ) : |
Returns the supported collections
|
|
GetSchema ( string collectionName ) : |
Returns the schema collection specified by the collection name.
|
|
GetSchema ( string collectionName, string restrictions ) : |
Returns the schema collection specified by the collection name filtered by the restrictions.
|
|
NpgsqlConnection ( ) : System |
Initializes a new instance of the
|
|
NpgsqlConnection ( |
Initializes a new instance of the
|
|
NpgsqlConnection ( String ConnectionString ) : System |
Initializes a new instance of the
|
|
Open ( ) : void |
Opens a database connection with the property settings specified by the
|
Method | Description | |
---|---|---|
BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : |
Begins a database transaction with the specified isolation level. Currently the IsolationLevel ReadCommitted and Serializable are supported by the PostgreSQL backend. There's no support for nested transactions. |
|
CreateDbCommand ( ) : |
Creates and returns a
|
|
Dispose ( bool disposing ) : void |
Releases all resources used by the
|
Method | Description | |
---|---|---|
CheckConnectionClosed ( ) : void | ||
CheckConnectionOpen ( ) : void | ||
CheckNotDisposed ( ) : void | ||
CopyConnectionStringBuilder ( ) : |
Returns a copy of the NpgsqlConnectionStringBuilder that contains the parsed connection string values.
|
|
DefaultCertificateSelectionCallback ( |
Default SSL CertificateSelectionCallback implementation.
|
|
DefaultCertificateValidationCallback ( |
Default SSL CertificateValidationCallback implementation.
|
|
DefaultPrivateKeySelectionCallback ( |
Default SSL PrivateKeySelectionCallback implementation.
|
|
DefaultProvideClientCertificatesCallback ( |
Default SSL ProvideClientCertificatesCallback implementation.
|
|
DefaultValidateRemoteCertificateCallback ( |
Default SSL ValidateRemoteCertificateCallback implementation.
|
|
EmergencyClose ( ) : void | ||
ICloneable ( ) : Object |
Create a new connection based on this one.
|
|
Init ( ) : void | ||
LoadConnectionStringBuilder ( |
Sets the `settings` ConnectionStringBuilder based on the given `connectionString`
|
|
LoadConnectionStringBuilder ( string connectionString ) : void |
Sets the `settings` ConnectionStringBuilder based on the given `connectionString`
|
|
LogConnectionString ( ) : void |
Write each key/value pair in the connection string to the log.
|
|
OnNotice ( object O, Npgsql.NpgsqlNoticeEventArgs E ) : void | ||
OnNotification ( object O, Npgsql.NpgsqlNotificationEventArgs E ) : void | ||
PromotableLocalTransactionEnded ( ) : void |
When a connection is closed within an enclosing TransactionScope and the transaction hasn't been promoted, we defer the actual closing until the scope ends.
|
|
ReallyClose ( ) : void | ||
RefreshConnectionString ( ) : void |
Refresh the cached _connectionString whenever the builder settings change
|
protected BeginDbTransaction ( System.Data.IsolationLevel isolationLevel ) : |
||
isolationLevel | System.Data.IsolationLevel | The |
return |
public BeginTransaction ( ) : |
||
return |
public BeginTransaction ( System.Data.IsolationLevel level ) : |
||
level | System.Data.IsolationLevel | The |
return |
public ChangeDatabase ( String dbName ) : void | ||
dbName | String | The name of the database to use in place of the current database. |
return | void |
protected CreateDbCommand ( ) : |
||
return |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true when called from Dispose(); /// false when being called from the finalizer. |
return | void |
public EnlistTransaction ( |
||
transaction | ||
return | void |
public GetSchema ( string collectionName ) : |
||
collectionName | string | The collection name. |
return |
public GetSchema ( string collectionName, string restrictions ) : |
||
collectionName | string | The collection name. |
restrictions | string | /// The restriction values to filter the results. A description of the restrictions is contained /// in the Restrictions collection. /// |
return |
public NpgsqlConnection ( |
||
ConnectionString | The connection used to open the PostgreSQL database. | |
return | System |
public NpgsqlConnection ( String ConnectionString ) : System | ||
ConnectionString | String | The connection used to open the PostgreSQL database. |
return | System |