C# Class MdxClient.MdxConnection

Represents an open connection to a SQL Server Analysis Services database.
Inheritance: System.Data.Common.DbConnection
显示文件 Open project: DynamicTyped/MdxClient Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ChangeDatabase ( string databaseName ) : void

Changes the current database for an open MdxConnection.

Close ( ) : void

Closes the connection to the database.

CreateCommand ( ) : MdxCommand
MdxConnection ( ) : System

Initializes a new instance of the MdxConnection class.

MdxConnection ( string connectionString ) : System

Initializes a new instance of the MdxConnection class when given a string that contains the connection string.

Open ( ) : void

Opens a database connection with the property settings specified by the connection string.

Protected Methods

Method Description
BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
CreateDbCommand ( ) : DbCommand
Dispose ( bool disposing ) : void

Method Details

BeginDbTransaction() protected method

protected BeginDbTransaction ( IsolationLevel isolationLevel ) : DbTransaction
isolationLevel IsolationLevel
return System.Data.Common.DbTransaction

ChangeDatabase() public method

Changes the current database for an open MdxConnection.
public ChangeDatabase ( string databaseName ) : void
databaseName string
return void

Close() public method

Closes the connection to the database.
public Close ( ) : void
return void

CreateCommand() public method

public CreateCommand ( ) : MdxCommand
return MdxCommand

CreateDbCommand() protected method

protected CreateDbCommand ( ) : DbCommand
return System.Data.Common.DbCommand

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

MdxConnection() public method

Initializes a new instance of the MdxConnection class.
public MdxConnection ( ) : System
return System

MdxConnection() public method

Initializes a new instance of the MdxConnection class when given a string that contains the connection string.
public MdxConnection ( string connectionString ) : System
connectionString string The connection used to open the SQL Server Analysis Services database. ///
return System

Open() public method

Opens a database connection with the property settings specified by the connection string.
public Open ( ) : void
return void