Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This indicates Indicates whether the foreign key column has a logical rolename. DATATYPE: Boolean.

Property Type

  • Read-only property

...

Code Block
languagevb
Sub Main 

Dim MyDiagram As Diagram 
Dim m As Model 
Dim e As Entities 
Dim ent As Entity 
Dim atr As AttributeObj 
  
Set MyDiagram = DiagramManager.ActiveDiagram 
Set m = MyDiagram.ActiveModel 
Set e = m.Entities 
  
For Each ent In e 
For Each atr In ent.Attributes 
atr.LogicalRoleName = ent.EntityName + "_" + atr.AttributeName + "_Role" 
Next atr 
Next ent 

For Each ent In e 
For Each atr In ent.Attributes 
  
If atr.HasLogicalRoleName then 
MsgBox("ENT: " + ent.EntityName + vbCrLf + _ 
"ATTR: " + atr.AttributeName + vbCrLf + _ 
"LogicalRoleName: " + atr.LogicalRoleName) 
End If 
  
Next atr 
Next ent 
  
End Sub 
Info
titleSee Also