#1 2016-12-30 12:34:37

Stemon63
Member
Registered: 2016-10-24
Posts: 49

Fields not persistent in TSQLrecord

Hi,
there is a way for manage fields that I don't want persist in DB?
I intend some fields present in Tsqlrecord that must not persisted in DB tables, but that can be used in Json serialize and Http trasport;
Simply, a field that is not mapped to DB;
So I can use them for "transport" calculation, additional data in SOA without having those fields into Database.
(.fieldmap('') ??)
Thanks in advance!
(Mormot is a is a real gem, I am discovering it day by day)

Stefano

Last edited by Stemon63 (2016-12-30 12:35:41)

Offline

#2 2016-12-30 21:41:59

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,203
Website

Re: Fields not persistent in TSQLrecord

Define one class per purpose.
TSqlRecord for persistency.
Another class or record as DTO.

Offline

Board footer

Powered by FluxBB