Esempio n. 1
0
        public AdomdDataAdapter(AdomdCommand command)
        {
            Contract.Requires(command != null, "The command parameter must not be null");

            if (command.Connection.Type == AdomdType.AnalysisServices)
            {
                _obj = new Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter
                {
                    SelectCommand = (Microsoft.AnalysisServices.AdomdClient.AdomdCommand)command.UnderlyingCommand
                };
            }
            else
            {
                void f()
                {
                    _objExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter
                    {
                        SelectCommand =
                            (ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdCommand)command.UnderlyingCommand
                    };
                }

                f();
            }
        }
Esempio n. 2
0
 public AdomdDataAdapter(AdomdCommand obj)
 {
     if (obj.Connection.Type == AdomdType.AnalysisServices)
     {
         _obj = new Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter();
         _obj.SelectCommand = (Microsoft.AnalysisServices.AdomdClient.AdomdCommand)obj.UnderlyingCommand;
     }
     else
     {
         ExcelAdoMdConnections.VoidDelegate f = delegate
         {
             _objExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter();
             _objExcel.SelectCommand =
                 (ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdCommand)obj.UnderlyingCommand;
         };
         f();
     }
 }
Esempio n. 3
0
 public AdomdDataAdapter(AdomdCommand obj)
 {
     if (obj.Connection.Type == AdomdType.AnalysisServices)
     {
         _obj = new Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter();
         _obj.SelectCommand = (Microsoft.AnalysisServices.AdomdClient.AdomdCommand) obj.UnderlyingCommand;
     }
     else
     {
         ExcelAdoMdConnections.VoidDelegate f = delegate
         {
             _objExcel = new ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter();
             _objExcel.SelectCommand =
                 (ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdCommand) obj.UnderlyingCommand;
         };
         f();
     }
 }
Esempio n. 4
0
 public AdomdDataAdapter(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter obj)
 {
     _objExcel = obj;
 }
Esempio n. 5
0
 public AdomdDataAdapter(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter obj)
 {
     _objExcel = obj;
 }