New to Telerik ReportingStart a free 30-day trial

Represents an OLAP cube to data items.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
public class CubeDataSource : DataSource, IDataSource

Inheritance: objectMarshalByRefObjectComponentDataSourceCubeDataSource

Implements: IDataSource

Inherited Members DataSource.NameDataSource.DescriptionDataSource.CalculatedFields

Constructors

Initializes a new instance of the CubeDataSource class.

C#
public CubeDataSource()

Initializes a new instance of the CubeDataSource class.

C#
public CubeDataSource(string connectionString, string selectCommand)
Parameters:connectionStringstring

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

selectCommandstring

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

Properties

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

C#
public string ConnectionString { get; set; }
Remarks:

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

Gets a collection with DataFieldMapping objects.

C#
public DataFieldMappingCollection Mappings { get; }
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.

Gets a collection with CubeDataSourceParameter objects.

C#
public CubeDataSourceParameterCollection Parameters { get; }
Remarks:

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

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

C#
public string SelectCommand { get; set; }