IDataCubeService.ReplaceStructure Method (DataCube, Guid, IDataSource, IDictionary<String, String>) |
Replaces the structure in given Select Transform with new data source.
Namespace:
Dundas.BI.Entities.DataCubes
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntaxvoid ReplaceStructure(
DataCube dataCube,
Guid selectTransformId,
IDataSource newDataSource,
IDictionary<string, string> elementsMap
)
Sub ReplaceStructure (
dataCube As DataCube,
selectTransformId As Guid,
newDataSource As IDataSource,
elementsMap As IDictionary(Of String, String)
)
void ReplaceStructure(
DataCube^ dataCube,
Guid selectTransformId,
IDataSource^ newDataSource,
IDictionary<String^, String^>^ elementsMap
)
abstract ReplaceStructure :
dataCube : DataCube *
selectTransformId : Guid *
newDataSource : IDataSource *
elementsMap : IDictionary<string, string> -> unit
Parameters
- dataCube
- Type: Dundas.BI.Entities.DataCubes.DataCube
The data cube. - selectTransformId
- Type: System.Guid
The select transform identifier. - newDataSource
- Type: Dundas.BI.Data.Transforms.IDataSource
The new data source. - elementsMap
- Type: System.Collections.Generic.IDictionary<String, String>
The elements map.
Provide map between unique native names of replaced element in source Select Transform and replacing element in target Data Source.
ExceptionsException | Condition |
---|
ArgumentNullException | dataCube is null
or
newDataSource is null.
|
ArgumentException | selectTransformId value is Empty
or
elementsMap is null or empty
or
elementsMap contains key or value that is null or Empty.
|
NotFoundException | selectTransformId references a Transform which does not exist
or
element with native name taken from one of the values in elementsMap is not found in the new Select Transform
or
element with native name taken from one of the keys in elementsMap is not found in the existing Select Transform
or
element with native name taken from one of the keys in elementsMap does not have connected input element in the next connected transform.
|
InvalidOperationException | selectTransformId is not a SelectTransform
or
data type of one of the replacement columns is not compatible with the data type of the existing column.
|
See Also