Base solution for your next web application
Open Closed

Namespace error on powertool #12541


User avatar
0
Hellonote created

Hi, we just encountered this error upon regenerating an entity

found out it's because of how we set the namespace before

is there a way around this?

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    oguzhanagir created
    Support Team

    Hi @Hellonote

    The issue happens because the namespace was set to Authorization.Users. Our validation helper (IsValidCSharpIdentifier) checks for single identifiers, not full relative namespaces. Since Authorization.Users contains a dot (.), it fails validation.

    In C#, Authorization and Users are each valid identifiers, but Authorization.Users as a whole is not considered a single valid identifier it’s a namespace chain.

    Workarounds:

    • Use only a single identifier (e.g. Users) as namespace when generating the entity.

    We’ll look into improving the validation helper to support relative namespaces in a future update. We created an issue for this. You can follow the developments in this issue.

    Thank you

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)