/// <summary> /// Initializes a new instance of the MdxDataAdapter class with the specified MdxCommand and MdxConnection. /// </summary> /// <param name="selectCommandText">The MDX statement to be used by the MdxDataAdapter.SelectCommand property.</param> /// <param name="selectConnection">An MdxConnection representing the connection.</param> public MdxDataAdapter(string selectCommandText, MdxConnection selectConnection) { MdxCommand command = new MdxCommand(selectCommandText); command.Connection = selectConnection; SelectCommand = command; }
internal MdxTransaction(MdxConnection connection) { if (null == connection) { throw new ArgumentNullException("connection"); } _connection = connection; }
/// <summary> /// Initializes a new instance of the MdxCommand class with the text of the query and a MdxConnection. /// </summary> /// <param name="commandText">The text of the query.</param> /// <param name="connection">An MdxConnection representing the connection to SQL Server Analysis Services.</param> public MdxCommand(string commandText, MdxConnection connection) { if (null == connection) { throw new ArgumentNullException("connection"); } _command = new AdomdCommand(commandText, connection.Connection); _connection = connection; }
protected override void Dispose(bool disposing) { if (disposing) { if (null != _connection) { Rollback(); } _connection = null; } base.Dispose(disposing); }
internal MdxDataReader(ResultSet resultSet, MdxConnection connection) { _resultSet = resultSet; _connection = connection; _schemaTable = CreateSchemaTable(); }