Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put Calculated Fields
Message
 
À
30/01/2006 15:19:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Versions des environnements
Environment:
C# 2.0
Database:
MS SQL Server
Divers
Thread ID:
01091608
Message ID:
01091622
Vues:
11
>I am not an expert on this, but it does seem to me that the third option will reduce network traffic - the calculated fields are calculated by the client.

Hilmar,

As I was asking this question to a coworker, I talked myself out of the first two options anyway. ;) Option 1 because you can't write to the calculated fields. Option 2 because it would make the stored procs messy. So, I guess the heart of my question is where is the best place to put these properties? I'm thinking of creating a class with 7 properties and putting an instance of that class on the DataRow. This would make access look like this:
oDataRow.WeekDays.Tuesday = false;
And that would set the 5th bit of oDataRow.nDayOfWeek to a one.

Is this a good (right) way to do it?

TIA,
Chad
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform