Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generation of new primary key values
Message
 
À
11/01/2007 07:14:35
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01184490
Message ID:
01184880
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform