Skip to content

Generated Code Fails to Compile When Message Property Name Matches Type #29

Description

This bug was first recorded here:
daryllabar/DLaB.Xrm.XrmToolBoxTools#502

Apparently the Code Dom will automatically append "__Member" to the property name if it matches the class name, but it doesn't update it when it's used in the constructor.

Technically the naming service can check for the collision and give a different name, but the Model builder can guarantee code that will compile if it will append "__Member" to the name to the property assignment in the constructor if it matches the class name.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions