Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RetrieveAutoIncrementPK
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01516689
Message ID:
01516793
Views:
36
Robert,

>Hello. In my ABusinessObject I have set Me.RetrieveAutoIncrementPK = True, but it's not getting the auto inc key. After I add a new record to me BO
>the PK is set to 0. I'm expecting to see a PK of 2.

You won't see the new primary key value until you save the record. SQL Server assigns this value when you save a new record, and MM .NET then retrieves this value from the database and stores it in the primary key column

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform