Class
CubeDataSource

Represents an OLAP cube to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public class CubeDataSource : DataSource, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSourceCubeDataSource

Implements: IDataSource

Inherited Members DataSource.NameDataSource.DescriptionDataSource.CalculatedFields

Constructors

CubeDataSource()

Initializes a new instance of the CubeDataSource class.

Declaration

cs-api-definition
public CubeDataSource()

CubeDataSource(string, string)

Initializes a new instance of the CubeDataSource class.

Declaration

cs-api-definition
public CubeDataSource(string connectionString, string selectCommand)

Parameters

connectionString

string

Specifies the connection string used to connect to the OLAP database.

selectCommand

string

Specifies the MDX select statement to execute against the OLAP cube.

Properties

ConnectionString

Gets or sets the connection string used to connect to the OLAP database.

Declaration

cs-api-definition
public string ConnectionString { get; set; }

Property Value

string

Remarks

The ConnectionString property contains a valid connection string or a name of a ConnectionStringSettings in the application's configuration file.

Mappings

Gets a collection with DataFieldMapping objects.

Declaration

cs-api-definition
public DataFieldMappingCollection Mappings { get; }

Property Value

DataFieldMappingCollection

Remarks

The Mappings collection is used to map the names of the data source fields to the actual fields returned when executing the MDX select statement.

Parameters

Gets a collection with CubeDataSourceParameter objects.

Declaration

cs-api-definition
public CubeDataSourceParameterCollection Parameters { get; }

Property Value

CubeDataSourceParameterCollection

Remarks

The Parameters collection is used to pass named parameters when executing a parameterized MDX select statement against the OLAP cube.

SelectCommand

Gets or sets the MDX select statement to execute against the OLAP cube.

Declaration

cs-api-definition
public string SelectCommand { get; set; }

Property Value

string