RelationshipInfoUniqueAssociationName Property |
Gets the name of the unique association.
Namespace:
SD.LLBLGen.Pro.GeneratorCore
Assembly:
SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.1.0.0 (5.1.0)
Syntax public string UniqueAssociationName { get; }
Public ReadOnly Property UniqueAssociationName As String
Get
Property Value
Type:
StringRemarks It uses a guid which is created at instantiation name. This name is therefore only valid in-memory
and can be used using code generation if the whole model is consumed in 1 go to refer to associations.
Format: StartvertexFullName_EndVertexFullNameUniqueGuid.
Use this name to refer to the association from code you generate during the same session. Do not use this name to
refer to it in code generated in another session as the Guid will be different in the second session. Instead,
use the name returned by IGenerator.GetUniqueRelationshipNameForRelationship(relationship).
As the guid changes each time the code is generated, it might be better to use the IGenerator.GetUniqueRelationshipNameForRelationship()
result, which is valid during a single preset run, so name changes in between code generation sessions is kept to a minimum (only duplicates
without navigators cause underscore appends to create unique names).
See Also