Open this page in the API Guide

IDateMappingService.GenerateDateMapping Method (Guid, IOlapCube, String)

Generates a new DateMapping object.

Namespace:  Dundas.BI.Entities.DateMappings
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
DateMapping GenerateDateMapping(
	Guid timeProviderId,
	IOlapCube cube,
	string hierarchyUniqueName
)

Parameters

timeProviderId
Type: System.Guid
The time provider ID.
cube
Type: Dundas.BI.Data.Metadata.Olap.IOlapCube
The cube.
hierarchyUniqueName
Type: System.String
The hierarchy unique name.

Return Value

Type: DateMapping
A reference to DateMapping object.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when timeProviderId is invalid.
ArgumentNullExceptionThrown when cube is null.
ArgumentExceptionThrown when hierarchyUniqueName is null or empty.
QuotaExceededExceptionGenerating the date mapping would cause the entity quota for date mappings or one of the underlying entity types to be exceeded.
See Also