Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Suggestion
Message
 
À
20/02/2004 11:10:17
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Divers
Thread ID:
00879262
Message ID:
00879686
Vues:
15
Larry,

>Please consider adding either...
>
>1) some kind of validation, perhaps in an Assign method
>
>or
>
>2)defining constants for the allowable values

Actually, this is the perfect place for an enumration...I debated long and hard about whether to make it a string or an enumeration, but decided on a string because it allows developers to create their own data access classes (other than the ones we already provide), whereas an enumeration would limit them to the classes already predefined in MM .NET. So...It would also be best not to put validation code in that checks for one of these three values since, again, it would prevent developers from creating their own data access classes for MM .NET.

That said, I CAN add comments to the Dev Guide where there is code demonstrating the population of the DataAccessClass property.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform