/// <summary>Initializes a new instance of the HttpDataSourceConnection class. /// </summary> /// <param name="dataSource">The data source that created this connection.</param> /// <param name="serviceProvider">The service provider.</param> /// <param name="promptMode">The prompt mode.</param> /// <param name="promptModels">The enumerator over the prompt models.</param> public LmiDataSourceConnection( LmiDataSource dataSource, IServiceProvider serviceProvider, DataSourcePromptMode promptMode, IEnumerable <object> promptModels) : base(dataSource, serviceProvider) { this.promptModels = promptModels; this.dataSource = dataSource; this.promptMode = promptMode; }
protected override void ExecuteCore(AnalysisApplication context) { LMIDataSource.LmiDataSource lMIDataSource = new LmiDataSource(); if (context.Document == null) { context.Open(lMIDataSource); } else { context.Document.Data.Tables.Add("dataTableName", lMIDataSource); } }
protected override IEnumerable <object> ExecuteAndPromptCore(AnalysisApplication context) { LMIDataSource.LmiDataSource lMIDataSource = new LmiDataSource(); LmiDataSourcePromptModel promptModel = lMIDataSource.createPromptModel(); yield return(promptModel); lMIDataSource.updateFromPromptReturn(promptModel); if (context.Document == null) { context.Open(lMIDataSource); } else { context.Document.Data.Tables.Add("dataTableName", lMIDataSource); } }