Свойство | Type | Description | |
---|---|---|---|
Dispose | void |
Méthode | Description | |
---|---|---|
ChangeDatabase ( string databaseName ) : void |
Changes the current database for an open connection.
|
|
Close ( ) : void |
Closes the connection to the database. This is the preferred method of closing any open connection.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
Open ( ) : void |
Opens a database connection with the settings specified by the P:System.Data.Common.DbConnection.ConnectionString.
|
Méthode | Description | |
---|---|---|
BeginDbTransaction ( IsolationLevel isolationLevel ) : |
Starts a database transaction.
|
|
CreateDbCommand ( ) : |
Creates and returns a T:System.Data.Common.DbCommand object associated with the current connection.
|
|
StoredProcedureSqlConnection ( string connectionString ) : System |
Initializes a new instance of the StoredProcedureSqlConnection class.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources.
|
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : |
||
isolationLevel | IsolationLevel | Specifies the isolation level for the transaction. |
Résultat |
public ChangeDatabase ( string databaseName ) : void | ||
databaseName | string | Specifies the name of the database for the connection to use. |
Résultat | void |
protected CreateDbCommand ( ) : |
||
Résultat |
protected StoredProcedureSqlConnection ( string connectionString ) : System | ||
connectionString | string | The connection string. |
Résultat | System |