PocketBaseClient
PocketBaseClient copied to clipboard
Dealing with PocketBase fields with unexpected names
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 as1
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