public AdomdConnection(string connectionString, AdomdType type) { _type = type; if (_type == AdomdType.AnalysisServices) { _conn = new AsAdomdClient.AdomdConnection(connectionString); } else { ExcelAdoMdConnections.VoidDelegate f = delegate { _connExcel = new ExcelAdomdClient.AdomdConnection(connectionString); }; f(); } }
public AdomdConnection(ExcelAdomdClient.AdomdConnection obj) { _type = AdomdType.Excel; _connExcel = obj; }