missing parameter returnID

Discussion of open issues, suggestions and bugs regarding EntityDAC
Post Reply
rbeeston
Posts: 12
Joined: Wed 25 Jan 2017 14:44

missing parameter returnID

Post by 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

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: missing parameter returnID

Post by AlexP » Mon 24 Apr 2017 09:49

Hello,

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

Post Reply