rappen / FetchXMLBuilder

FetchXML Builder for XrmToolBox and Microsoft Dynamics 365 / CRM
https://fetchxmlbuilder.com/
GNU General Public License v3.0
133 stars 55 forks source link

Updated fetchxml conversion to c sharp to avoid collision #1030

Closed grasshopperhamburger closed 3 months ago

grasshopperhamburger commented 3 months ago

Hello! This is my first contribution to any public repository, so I apologize in advance for any mistakes.

The Situation:

When using this tool, some users may paste the entity logical name to easily access aliased values from the resulting collection (without appending "1" if left blank). While this method is straightforward, it poses a problem. The variable holding the link entity object will inevitably conflict because its name is the same as the early bound class (when present).

The Solution:

Without excessive engineering, a simple compare to prefix the logical name

thanks in advance

rappen commented 3 months ago

Thanks for your PR!