Open this page in the API Guide

IRelationshipService.GetJoinRelationship Method (IStructure, IStructure, IEnumerable<String>, IEnumerable<String>)

Gets the relationship to be used for a join operation. If there are no relationships defined, it generates one.

Namespace:  Dundas.BI.Data.Relationships
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
Relationship GetJoinRelationship(
	IStructure firstStructure,
	IStructure secondStructure,
	IEnumerable<string> firstStructureElements,
	IEnumerable<string> secondStructureElements
)

Parameters

firstStructure
Type: Dundas.BI.Data.Metadata.IStructure
The first structure.
secondStructure
Type: Dundas.BI.Data.Metadata.IStructure
The second structure.
firstStructureElements
Type: System.Collections.Generic.IEnumerable<String>
The selected elements from the first structure, to be used as relationship hints.
secondStructureElements
Type: System.Collections.Generic.IEnumerable<String>
The selected elements from the second structure, to be used as relationship hints.

Return Value

Type: Relationship
The relationship to be used in the join operation.
Exceptions
ExceptionCondition
ArgumentNullExceptionfirstStructure, secondStructure, firstStructureElements or secondStructureElements is null.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also