Click here to Skip to main content
15,888,521 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Data structure design Pin
Ray Cassick3-Nov-08 6:13
Ray Cassick3-Nov-08 6:13 
GeneralRe: Data structure design Pin
hpjchobbes3-Nov-08 6:51
hpjchobbes3-Nov-08 6:51 
GeneralRe: Data structure design Pin
Ray Cassick3-Nov-08 7:04
Ray Cassick3-Nov-08 7:04 
AnswerRe: Data structure design Pin
Mark Churchill3-Nov-08 13:56
Mark Churchill3-Nov-08 13:56 
GeneralRe: Data structure design Pin
hpjchobbes4-Nov-08 16:55
hpjchobbes4-Nov-08 16:55 
GeneralRe: Data structure design Pin
Mark Churchill4-Nov-08 17:19
Mark Churchill4-Nov-08 17:19 
AnswerRe: Data structure design Pin
Arash Partow4-Nov-08 23:04
Arash Partow4-Nov-08 23:04 
AnswerRe: Data structure design Pin
CodingYoshi15-Nov-08 8:21
CodingYoshi15-Nov-08 8:21 
What if you did something like this:

Create a class called ClientCollection which will have all the clients in some data structure of your choice. Within this class (ClientCollection) have a method called Search, or Find which will take 2 parameters: 1. The property to search by and 2. The value to search for. Within this method create a Dictionary and put all your clients into it. The property to search by will be the Key, and the value will be the Clients. Afterwards, call the Contains method of the Dictionary to search the value passed in.

Of course, this means that if you have many clients putting them into the Dictionary will take time.

I will also do what you suggested above in addition to this but create tables for the field(s) which will be used mostly for searching.

Now you don't have too many tables, but you are also providing the flexibility of searching by any field.
QuestionBest Practices for Code Organization Pin
minus_one30-Oct-08 21:37
minus_one30-Oct-08 21:37 
AnswerRe: Best Practices for Code Organization Pin
Urs Enzler2-Nov-08 0:20
Urs Enzler2-Nov-08 0:20 
AnswerRe: Best Practices for Code Organization Pin
Eddy Vluggen2-Nov-08 22:52
professionalEddy Vluggen2-Nov-08 22:52 
QuestionMultiple database support Pin
Atul Kharecha30-Oct-08 0:40
Atul Kharecha30-Oct-08 0:40 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili30-Oct-08 1:16
mentorGiorgi Dalakishvili30-Oct-08 1:16 
AnswerRe: Multiple database support Pin
Urs Enzler2-Nov-08 0:22
Urs Enzler2-Nov-08 0:22 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili3-Nov-08 8:06
mentorGiorgi Dalakishvili3-Nov-08 8:06 
RantRe: Multiple database support Pin
Jessn9-Dec-08 10:38
Jessn9-Dec-08 10:38 
AnswerRe: Multiple database support... example [modified] Pin
Jessn9-Dec-08 10:40
Jessn9-Dec-08 10:40 
GeneralReplicating Business Rules on a Web Client Pin
Brady Kelly28-Oct-08 0:00
Brady Kelly28-Oct-08 0:00 
GeneralRe: Replicating Business Rules on a Web Client Pin
Ray Cassick4-Nov-08 10:51
Ray Cassick4-Nov-08 10:51 
GeneralRe: Replicating Business Rules on a Web Client Pin
Mark Churchill4-Nov-08 12:25
Mark Churchill4-Nov-08 12:25 
QuestionPatterns Pin
CodingYoshi23-Oct-08 3:57
CodingYoshi23-Oct-08 3:57 
AnswerRe: Patterns Pin
Leslie Sanford23-Oct-08 11:52
Leslie Sanford23-Oct-08 11:52 
AnswerRe: Patterns Pin
Mark Churchill23-Oct-08 13:36
Mark Churchill23-Oct-08 13:36 
GeneralRe: Patterns Pin
CodingYoshi24-Oct-08 3:38
CodingYoshi24-Oct-08 3:38 
GeneralRe: Patterns Pin
Urs Enzler2-Nov-08 0:30
Urs Enzler2-Nov-08 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.