You are not logged in.
Pages: 1
Hello,
Does mORMot allow to customize field names?
e.g.
TPerson
...
published
FirstName: RawUTF8;
LastName: RawUTF8;
...
In database to be represented as
first_name, last_name
Thanks
Rael
Offline
Yes, it is called field mapping.
See for instance https://synopse.info/files/html/Synopse … #MNDX_1339
Offline
Thanks.
There is a small typo there:
VirtualTableExternalRegister(fExternalModel,TSQLRecordPeopleExt,fProperties,'PeopleExternal');
We also customized the name of the external table, from its default 'PeopleExt' (computed by /timing/ TSQLRecord prefix from TSQLRecordPeopleExt) into 'PeopleExternal'.
Should be "trimming"
Offline
Pages: 1