Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Primary Key in New Record
I am entering FOLKO Customer ID in the Customer Order screen (C# sample). The last selected record has 11050 order ID primary key. Click on a New button creates a new record with the next, 11051 PK, but this PK belongs to another customer and has its own Order Details which are shown up on the Properties page. After saving the PK becomes what it supposed to be, 11083, the next in the Orders table, not next in the selected dataset, but Order Detail records are still there with wrong 11051 Order Id. It this behavior by design? Should I program getting the correct PK by myself?
Thanks
Slava
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement