Page 1 of 1

missing parameter returnID

Posted: Thu 09 Feb 2017 12:49
by rbeeston
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

Re: missing parameter returnID

Posted: Mon 24 Apr 2017 09:49
by AlexP
Hello,

Please, specify the exact EntityDAC version, DB name and EntityProvider which you are using