Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding fields to a DB
Message
De
07/04/2008 10:58:53
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
04/04/2008 12:05:30
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01308251
Message ID:
01308713
Vues:
9
Mick,

>For the first time I have a situation, that is a little different than I've had before in the .NET world. I have a table of sites with a SiteID. This field will be used through the rest of my tables as a way to limit all the activates to happening with that one site. My question is in two parts. How do the rest of you add a new column through all your BOs, do you use the Business Layer Generator and bite the bullet and make changes as needed, or do you just add the new field by hand through the classes?
>
>Next, this is essentially a global property. How do the rest of you handle this sort of thing? I'm not asking for exact details just overall best practices.
>
The Business Layer Generator lets you regenerate just the entity object if you want. If you have defaults that need to be set, regenerate that also. If you havn't coded any specific rules, then you can regenerate that also. That is how I do it unless I have created my own code in the defaults or rules classes then I add to them manually. I rarely put any hand code in the entity object. Of course, you can easily add a column to the entity object by hand also. Not really a big deal.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform