示例#1
0
 public AdomdConnection(string connectionString, AdomdType type)
 {
     _type = type;
     if (_type == AdomdType.AnalysisServices)
     {
         _conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
     }
     else
     {
         ExcelAdoMdConnections.VoidDelegate f = delegate
         {
             _connExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
         };
         f();
     }
 }
示例#2
0
 public AdomdConnection(string connectionString, AdomdType type)
 {
     _type = type;
     if (_type == AdomdType.AnalysisServices)
     {
         _conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
     }
     else
     {
         ExcelAdoMdConnections.VoidDelegate f = delegate
         {
             _connExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
         };
         f();
     }
 }
示例#3
0
        public AdomdConnection(string connectionString, AdomdType type)
        {
            _type = type;
            if (_type == AdomdType.AnalysisServices)
            {
                _conn = new Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
            }
            else
            {
                void f()
                {
                    _connExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection(connectionString);
                }

                f();
            }
        }
示例#4
0
 public void Dispose()
 {
     if (_type == AdomdType.AnalysisServices)
     {
         if (_conn != null)
         {
             _conn.Dispose();
             _conn = null;
         }
     }
     else
     {
         ExcelAdoMdConnections.VoidDelegate f = delegate
         {
             if (_connExcel != null)
             {
                 _connExcel.Dispose();
                 _connExcel = null;
             }
         };
         f();
     }
 }
示例#5
0
        public void Dispose()
        {
            if (_type == AdomdType.AnalysisServices)
            {
                if (_conn != null)
                {
                    _conn.Dispose();
                    _conn = null;
                }
            }
            else
            {
                void f()
                {
                    if (_connExcel != null)
                    {
                        _connExcel.Dispose();
                        _connExcel = null;
                    }
                }

                f();
            }
        }
示例#6
0
 public AdomdConnection(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection obj)
 {
     _type      = AdomdType.Excel;
     _connExcel = obj;
 }
示例#7
0
 public AdomdConnection(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdConnection obj)
 {
     _type = AdomdType.Excel;
     _connExcel = obj;
 }