Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generation of new primary key values
Message
 
To
11/01/2007 07:14:35
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01184490
Message ID:
01184880
Views:
20
This message has been marked as the solution to the initial question of the thread.
Mark,

>So my question is: how can I get the same control of the primary key generating process as described above ?(use of stored procedure in the database). And where do I have to put the necessary code?

If you want to prefetch primary keys, you can put code in your business objects HookSetDefaultValues() method. You can call out to a stored procedure to retrieve the next value and put it in the primary key column of your new DataRow.

If you want to do this for ALL business objects in your project, you can put the code in the ABusinessObject class.

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