Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting primary key after an insert
Message
De
21/06/2006 12:05:28
 
 
À
21/06/2006 05:12:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01127217
Message ID:
01130533
Vues:
22
>Don't auto-generate the keys, I don't know if someone's already mentioned this but use Guids in .Net.
>
>ie: (c#)
>
>
>Guid id = Guid.NewGuid();
>
>
>Auto-incrementing keys is a bad idea, your guids will be unique and you'll have the primary key to hand at all times.

I don't have any problem with that at all. Everything is done at the framework level so there is no code to manage that at the client's applicatioan.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform