Skip to content

The data model generation fails if a property name uses a C# reserved keyword #14828

Open
@mlqn

Description

@mlqn

Description of the bug

The data model generation fails if a property name uses a C# reserved keyword (e.g., new, private, class, if, enum, etc).
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/

We can probably reuse part of the validation mechanism of the data model name (see: #14049).

Steps To Reproduce

Property name

data-model-property-error.mov

Data model name (works as expected)

Image

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    added-to-sprintarea/data-modelingArea: Related to data models - e.g. create, edit, use data models.good first issueIssues that are easy to fix for new team members or external contributorskind/bugUsed when there is a defect / something is not working as it should.team/studio-domain1

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions