Skip to content

Dealing with PocketBase fields with unexpected names #30

@iluvadev

Description

@iluvadev

PocketBase allows field names that can not be translated correctly to Properties in C#:

  • _ -> Is translated to Empty string
  • __ -> Is translated to Empty string. Same PropertyName as _
  • 1 -> Is translated to "1", forbidden name for a Property
  • _1, 1_, _1_ -> All translated to "1", forbidden name for a Property. Same PropertyName as 1

And allows multiple fields that will be translated to the same Property name in C#:

  • field, _field, __field, _field_ -> All translated to same PropertyName: Field
  • my_field, my__field, _myField_, MyField -> All translated to same PropertyName: MyField

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    BackLog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions