コード例 #1
0
        /// <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;
        }
コード例 #2
0
ファイル: MdxTransaction.cs プロジェクト: leojim/ReportViewer
        internal MdxTransaction(MdxConnection connection)
        {
            if (null == connection)
            {
                throw new ArgumentNullException("connection");
            }

            _connection = connection;
        }
コード例 #3
0
        /// <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;
        }
コード例 #4
0
ファイル: MdxTransaction.cs プロジェクト: leojim/ReportViewer
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (null != _connection)
         {
             Rollback();
         }
         _connection = null;
     }
     base.Dispose(disposing);
 }
コード例 #5
0
ファイル: MdxDataReader.cs プロジェクト: leojim/ReportViewer
 internal MdxDataReader(ResultSet resultSet, MdxConnection connection)
 {
     _resultSet   = resultSet;
     _connection  = connection;
     _schemaTable = CreateSchemaTable();
 }