Hallo,
I have this scenario:
Master-Detail
Master have CachedUpdates = False
Detail Have CachedUpdate = True
On Master.BeforePost I do Detail.ApplyUpdates and works Ok.
I tried to understand usage of Foreign key and I add a Foreign Key on table Detail that refer on primary key of Master.
But, now when I try:Detail.ApplyUpdates, FB Raise exception because the key on Master is not present!
What is the correct usage of Foreign Key on ZeosLib?
Thanks
[FB2.1]Master-Detail and correct usage of Foreign Key
Moderators: gto, EgonHugeist
Re: [FB2.1]Master-Detail and correct usage of Foreign Key
I used correctly but the is a bug on Master/Detail that losts detail on applyUpdates, see http://zeosbugs.firmos.at/view.php?id=185louis wrote:What is the correct usage of Foreign Key on ZeosLib?