A Sandcastle Documented Class Library

# IDataCubeService GenerateDataCube Method (Guid, Guid, IEnumerable String , PersistencePolicy)

Creates and saves a DataCube using a compatible structure as the starting SelectTransform. A final ResultTransform is added automatically and connected automatically.

Namespace: Dundas.BI.Entities.DataCubes
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    DataCube GenerateDataCube(
    	Guid parentId,
    	Guid structureId,
    	IEnumerable<string> dataElements,
    	PersistencePolicy persistencePolicy
    )

    Function GenerateDataCube (
    	parentId As Guid,
    	structureId As Guid,
    	dataElements As IEnumerable(Of String),
    	persistencePolicy As PersistencePolicy
    ) As DataCube

    DataCube^ GenerateDataCube(
    	Guid parentId,
    	Guid structureId,
    	IEnumerable<String^>^ dataElements,
    	PersistencePolicy persistencePolicy
    )

    abstract GenerateDataCube :
            parentId : Guid *
            structureId : Guid *
            dataElements : IEnumerable<string> *
            persistencePolicy : PersistencePolicy -> DataCube

#### Parameters

parentId
  Type: System
  Guid
  The ID of the parent file or folder.
structureId
  Type: System
  Guid
  The structure ID.
dataElements
  Type: System.Collections.Generic
  IEnumerable
  String
  The data elements.
persistencePolicy
  Type: Dundas.BI.Entities
  PersistencePolicy
  A value indicating whether the entity should be created as persistent or transient.

#### Return Value

Type: DataCube
The newly created DataCube.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | dataElements is .
ArgumentException | structureId references a structure that is not compatible with one of the supported SelectTransform transforms or parentId is Empty.
NoPrivilegeException | Caller does not have access to the specified data connector.
InvalidSessionException | The caller context is not associated with a valid session.
DataProviderLoadException | The data provider may throw this exception if it requires third party driver to be installed.
DataConnectionException | The connection cannot be established.
NotFoundException | The structure with the specified structureId or parentId does not exist.

See Also

#### Reference

IDataCubeService Interface
GenerateDataCube Overload
Dundas.BI.Entities.DataCubes Namespace