Skip to content

Commit

Permalink
Updated fetchxml conversion to c sharp to avoid collision
Browse files Browse the repository at this point in the history
  • Loading branch information
grasshopperhamburger authored Mar 26, 2024
1 parent d2ae7ca commit a490c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FetchXmlBuilder/Converters/CSharpCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private string GetLinkEntitiesLbL(DataCollection<LinkEntity> linkEntities, strin
foreach (var link in linkEntities)
{
var linkcode = string.Empty;
var linkname = GetVarName(string.IsNullOrEmpty(link.EntityAlias) ? LineStart + "_" + link.LinkToEntityName : link.EntityAlias);
var linkname = GetVarName(string.IsNullOrEmpty(link.EntityAlias) || link.LinkToEntityName == link.EntityAlias ? LineStart + "_" + link.LinkToEntityName : link.EntityAlias);
if (settings.IncludeComments)
{
linkcode += $"//{CRLF}// Add link-entity {linkname}{CRLF}";
Expand Down Expand Up @@ -1435,4 +1435,4 @@ internal static string CapitSchemaName(this AttributeMetadata attribute, QExFlav
return attribute.SchemaName;
}
}
}
}

0 comments on commit a490c61

Please sign in to comment.