Exemplo 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();
            }
        }
Exemplo 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();
     }
 }
Exemplo 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();
     }
 }
Exemplo n.º 4
0
 public AdomdDataAdapter(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter obj)
 {
     _objExcel = obj;
 }
Exemplo n.º 5
0
 public AdomdDataAdapter(ExcelAdomdClientReference::Microsoft.AnalysisServices.AdomdClient.AdomdDataAdapter obj)
 {
     _objExcel = obj;
 }