missing parameter returnID
Posted: Thu 09 Feb 2017 12:49
Hello,
I setup a simple model, with a PK which is an Integer called ID.
I found the bit where i can autogenerate the ID (Set to increment).
Got this working fine...
Then i found the "Auto-Sync" option, was set to "Never". I changed it to "Always". Saved the model, rebuilt the code and ran my program again.. but on a save it goes "Boom" - Exception "missing parameter returnID".
Eh? What?
The code is very simple
procedure Test;
var
lStatus : TStatus;
begin
lStatus := TStatus.Create; // this is the mapped entity
lStatus.Name := 'Test';
FContext.Attach(lStatus);
lStatus.Save;
end;
What am i missing?
Thanks
I setup a simple model, with a PK which is an Integer called ID.
I found the bit where i can autogenerate the ID (Set to increment).
Got this working fine...
Then i found the "Auto-Sync" option, was set to "Never". I changed it to "Always". Saved the model, rebuilt the code and ran my program again.. but on a save it goes "Boom" - Exception "missing parameter returnID".
Eh? What?
The code is very simple
procedure Test;
var
lStatus : TStatus;
begin
lStatus := TStatus.Create; // this is the mapped entity
lStatus.Name := 'Test';
FContext.Attach(lStatus);
lStatus.Save;
end;
What am i missing?
Thanks