Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspdotnet_website_programming thread: how to handle an application-level data dictionary


Message #1 by "Andrew Pasetti" <andrewpasetti@y...> on Tue, 20 Aug 2002 15:07:30
Following the three tier approach outlined in the book, I'm wondering how 
to handle the conversion from numeric data in the database to its textual 
representation for display.

For example, the data layer receives the value '1' from the database, 
leaving the business layer to covert that value to something like 'Yes'. 
However, in my particular application each field, or question, also has a 
weight associated with it.

Answering 'Yes' to question 1 will have a value of say, 2. While 'No' will 
have a value of 4. There's no need to store these values for each session, 
I just need a way to look them up when I need to. Which leads me towards 
using an application-level dictionary object. A quick search on Google 
tells me that this is a bad idea because of thread problems.

Can someone please suggest an alternative?

Thanks,

Andrew Pasetti

  Return to Index