Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where to put Calculated Fields
Message
From
30/01/2006 20:18:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 2.0
Database:
MS SQL Server
Miscellaneous
Thread ID:
01091608
Message ID:
01091720
Views:
11
>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

I am still quite confused about the data access objects, so I hope that someone with more experience can answer your question.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform