Click or drag to resize

GeneratorGetUniqueRelationshipNameForRelationship Method

Gets the cached unique relationship name for relationship specified. The relationship has to be in scope of the generator

Namespace:  SD.LLBLGen.Pro.GeneratorCore
Assembly:  SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.7.0.0 (5.7.0)
Syntax
public string GetUniqueRelationshipNameForRelationship(
	RelationshipEdge relationship
)

Parameters

relationship
Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelRelationshipEdge
The relationship.

Return Value

Type: String
unique name within the scope of the generator for the relationship specified

Implements

IGeneratorGetUniqueRelationshipNameForRelationship(RelationshipEdge)
Remarks
The name is in the format StartEntityName_StartNavigator_EndEntityName_EndNavigator. If duplicates arise, underscores are appended till a unique name is created. If it's not found, the name is obtained from the relationship itself, which uses StartEntityName_EndEntityName_FKFields.
See Also