C# Класс Dibware.StoredProcedureFramework.Base.StoredProcedureSqlConnection

Represents a base class that may be inherited for use with an application specific connection
Наследование: System.Data.Common.DbConnection, IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Dispose void

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction

Starts a database transaction.

CreateDbCommand ( ) : DbCommand

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.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Описание методов

BeginDbTransaction() защищенный Метод

Starts a database transaction.
protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
isolationLevel IsolationLevel Specifies the isolation level for the transaction.
Результат System.Data.Common.DbTransaction

ChangeDatabase() публичный Метод

Changes the current database for an open connection.
public ChangeDatabase ( string databaseName ) : void
databaseName string Specifies the name of the database for the connection to use.
Результат void

Close() публичный Метод

Closes the connection to the database. This is the preferred method of closing any open connection.
public Close ( ) : void
Результат void

CreateDbCommand() защищенный Метод

Creates and returns a T:System.Data.Common.DbCommand object associated with the current connection.
protected CreateDbCommand ( ) : DbCommand
Результат System.Data.Common.DbCommand

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Open() публичный Метод

Opens a database connection with the settings specified by the P:System.Data.Common.DbConnection.ConnectionString.
public Open ( ) : void
Результат void

StoredProcedureSqlConnection() защищенный Метод

Initializes a new instance of the StoredProcedureSqlConnection class.
protected StoredProcedureSqlConnection ( string connectionString ) : System
connectionString string The connection string.
Результат System