Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Key in New Record
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00856273
Message ID:
00856390
Vues:
16
Thank you Kevin.
I'll check it out.

Slava

>Slava,
>
>>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?
>
>Check out the MM .NET Dev Guide topic "Using Custom Auto-Increment Logic" for information on this. What you're seeing is the default behavior of ADO.NET. There are properties you can set on the business object to alter this behavior.
>
>Regards,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform