Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primary Key in New Record
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00856273
Message ID:
00856390
Views:
17
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,
Previous
Reply
Map
View

Click here to load this message in the networking platform