public override string ToString()
{
var tableCollection = ((ModelRoot)this.Root).Database.Tables;
Table[] parentList = { };
Table[] childList = { };
if (this.ParentTableRef != null)
parentList = tableCollection.GetById(this.ParentTableRef.Ref);
if (this.ChildTableRef != null)
childList = tableCollection.GetById(this.ChildTableRef.Ref);
var retval = string.Empty;
retval = (this.RoleName == "" ? "" : this.RoleName + " ") + "[" + ((parentList.Length == 0) ? "(Unknown)" : parentList[0].Name) + " -> " + ((childList.Length == 0) ? "(Unknown)" : childList[0].Name) + "]";
return retval;
}