Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's the terminology?
Message
De
16/06/2010 12:19:17
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
16/06/2010 12:15:15
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01469189
Message ID:
01469250
Vues:
34
>What would be ideal would be if I could get the enum to automatically get built from the table, which is what Mike seems to do with nHibernate.

Not exactly... my Enumeration is the source for the table. My table is not the source for my Enumeration - just a dumb place to store the type. If you need to store friendly display names them you may want to have your DB structure mirror your enumeration and do the mapping in your code.
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform