A Sandcastle Documented Class Library

# IDataCubeService GenerateDataCube Method (String, Guid, Guid, EntityCreationOptions)

Creates and saves a DataCube using a compatible structure as the starting SelectTransform. All the native structure elements are queried. 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(
    	string name,
    	Guid parentId,
    	Guid structureId,
    	EntityCreationOptions options
    )

    Function GenerateDataCube (
    	name As String,
    	parentId As Guid,
    	structureId As Guid,
    	options As EntityCreationOptions
    ) As DataCube

    DataCube^ GenerateDataCube(
    	String^ name,
    	Guid parentId,
    	Guid structureId,
    	EntityCreationOptions^ options
    )

    abstract GenerateDataCube :
            name : string *
            parentId : Guid *
            structureId : Guid *
            options : EntityCreationOptions -> DataCube

#### Parameters

name
  Type: System
  String
  The name of the data cube.
parentId
  Type: System
  Guid
  The ID of the parent file or folder.
structureId
  Type: System
  Guid
  The structure ID.
options
  Type: Dundas.BI.Entities
  EntityCreationOptions
  Options for saving the new entity; or
  to use the default options.

#### Return Value

Type: DataCube
The newly created DataCube.
Exceptions

Exception | Condition
--- | ---
ArgumentException | name is or Empty or 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.
DuplicateItemException | The name for the data cube is not unique.
NotFoundException | The structure with the specified structureId or parentId does not exist.

See Also

#### Reference

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