I get an error when saving a new record with a "Field 'Id' must have a value" error on an ID of type TGUID.
The connection is to a MSSQL 2008 server and the class definition is:
[Entity]
[Table('Person'')]
[Id('FID', TIdGenerator.Guid)]
TPERSON = class
private
[Column('ID', [TColumnProp.Required])]
FID: TGuid;
public
property Id: TGuid read FID write FID;
end;
I assume Arelius will generate the GUID, if so does this happen on creating the new record or on the save?
Should I set the generator to none and generate the GUID myself?
Thanks