#1 2024-10-22 06:15:19

DonAlfredo
Member
Registered: 2023-10-31
Posts: 2

TRttiMap feature request

I use the TRttiMap to map a DTO to ORM. Works very well.
But sometimes, we need to update a single value of the DTO/ORM.
Normally, the function Orm.Update(OrmEntity,FieldName) would be good. However, the DTO fieldname might be different from the ORM fieldname. Naturally, that is why the mapping is used.
To use this function, we need something like:

TRttiMap.FindField.ToB(FieldNameOfA):RawUTF8;
TRttiMap.FindField.ToA(FieldNameOfB):RawUTF8;

Thanks !

Offline

Board footer

Powered by FluxBB