Свойство | Тип | Описание | |
---|---|---|---|
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 |
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
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 |
Результат |
public BeginTransaction ( ) : |
||
Результат |
public BeginTransaction ( System.Data.IsolationLevel level ) : |
||
level | System.Data.IsolationLevel | The |
Результат |
public ChangeDatabase ( String dbName ) : void | ||
dbName | String | The name of the database to use in place of the current database. |
Результат | void |
protected CreateDbCommand ( ) : |
||
Результат |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true when called from Dispose(); /// false when being called from the finalizer. |
Результат | void |
public EnlistTransaction ( |
||
transaction | ||
Результат | void |
public GetSchema ( string collectionName ) : |
||
collectionName | string | The collection name. |
Результат |
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. /// |
Результат |
public NpgsqlConnection ( |
||
ConnectionString | The connection used to open the PostgreSQL database. | |
Результат | System |
public NpgsqlConnection ( String ConnectionString ) : System | ||
ConnectionString | String | The connection used to open the PostgreSQL database. |
Результат | System |