missing parameter returnID

missing parameter returnID

Postby rbeeston » 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
rbeeston
 
Posts: 12
Joined: Wed 25 Jan 2017 14:44

Re: missing parameter returnID

Postby AlexP » Mon 24 Apr 2017 09:49

Hello,

Please, specify the exact EntityDAC version, DB name and EntityProvider which you are using
AlexP
Devart Team
 
Posts: 5530
Joined: Tue 10 Aug 2010 11:35


Return to EntityDAC