Up to now, the
TSQLRecord.ID property was defined in
mORMot.pas as a plain
Win32), since it was type-cast as pointer for
We introduced a new
TID type, so that the ORM primary key would
now be defined as
All the framework ORM process relies on the
TSQLRecord class features a lot of built-in methods,
convenient to do most of the ORM process in a generic way, at record level.
It first defines a primary key field, defined as
TID, i.e. as
type TID = type Int64; ... TSQLRecord = class(TObject) ... property ID: TID read GetID write fID; ...
In fact, our ORM relies now on a
Int64 primary key, matching
RowID primary key.
This primary key will be used as RESTful resource identifier, for all CRUD operations.