Click here to Skip to main content
15,845,785 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: designing a good way enable/disable controls Pin
giddy_guitarist15-Nov-08 23:25
giddy_guitarist15-Nov-08 23:25 
QuestionDatabase Engine Independant Data Modelling Pin
Brady Kelly7-Nov-08 6:03
Brady Kelly7-Nov-08 6:03 
AnswerRe: Database Engine Independant Data Modelling Pin
User 17164927-Nov-08 9:00
professionalUser 17164927-Nov-08 9:00 
AnswerRe: Database Engine Independant Data Modelling Pin
Eduardo B16-Nov-08 14:51
Eduardo B16-Nov-08 14:51 
GeneralPart One of a Series on Replicating Validation Logic Between Client and Server [modified] Pin
Brady Kelly7-Nov-08 4:42
Brady Kelly7-Nov-08 4:42 
QuestionHi there :) Please help me Pin
viashivan5-Nov-08 6:05
viashivan5-Nov-08 6:05 
AnswerRe: Hi there :) Please help me Pin
Vimalsoft(Pty) Ltd17-Nov-08 20:55
professionalVimalsoft(Pty) Ltd17-Nov-08 20:55 
QuestionData structure design Pin
hpjchobbes3-Nov-08 6:57
hpjchobbes3-Nov-08 6:57 
What is the best way to structure class objects in a program that allows me to search for values from different properties of the class?

I am making an application that holds client name, address phone and note information. I created a Client class that holds all these together. In my main program, I was putting each new client in an array list, but I ran across a problem. I can't search my array list for just a first or last name.

I don't think that overriding the Equals function of my class would allow me to change that, so I started looking at other ways to hold my data.

If I created another value in my class, like an ID field, I could create a hash table that was a ID/value pair (ID/First Name, ID/Last Name, ID/Address, ect). This would allow me to search each hash table and find the ID to get the full record, but that would mean I would need a table for each field that I would want to search. At this point, I'm a bit stuck on the best way to set my data structure up.

If there's some articles that give some guidance and suggestions, I would appreciate it. I can't seem to find anything because I don't think I'm using the right terminology.
AnswerRe: Data structure design Pin
Ray Cassick3-Nov-08 7:13
Ray Cassick3-Nov-08 7:13 
GeneralRe: Data structure design Pin
hpjchobbes3-Nov-08 7:51
hpjchobbes3-Nov-08 7:51 
GeneralRe: Data structure design Pin
Ray Cassick3-Nov-08 8:04
Ray Cassick3-Nov-08 8:04 
AnswerRe: Data structure design Pin
Mark Churchill3-Nov-08 14:56
Mark Churchill3-Nov-08 14:56 
GeneralRe: Data structure design Pin
hpjchobbes4-Nov-08 17:55
hpjchobbes4-Nov-08 17:55 
GeneralRe: Data structure design Pin
Mark Churchill4-Nov-08 18:19
Mark Churchill4-Nov-08 18:19 
AnswerRe: Data structure design Pin
Arash Partow5-Nov-08 0:04
Arash Partow5-Nov-08 0:04 
AnswerRe: Data structure design Pin
CodingYoshi15-Nov-08 9:21
CodingYoshi15-Nov-08 9:21 
QuestionBest Practices for Code Organization Pin
minus_one30-Oct-08 22:37
minus_one30-Oct-08 22:37 
AnswerRe: Best Practices for Code Organization Pin
Urs Enzler2-Nov-08 1:20
Urs Enzler2-Nov-08 1:20 
AnswerRe: Best Practices for Code Organization Pin
Eddy Vluggen2-Nov-08 23:52
professionalEddy Vluggen2-Nov-08 23:52 
QuestionMultiple database support Pin
Atul Kharecha30-Oct-08 1:40
Atul Kharecha30-Oct-08 1:40 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili30-Oct-08 2:16
mentorGiorgi Dalakishvili30-Oct-08 2:16 
AnswerRe: Multiple database support Pin
Urs Enzler2-Nov-08 1:22
Urs Enzler2-Nov-08 1:22 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili3-Nov-08 9:06
mentorGiorgi Dalakishvili3-Nov-08 9:06 
RantRe: Multiple database support Pin
Jessn9-Dec-08 11:38
Jessn9-Dec-08 11:38 
AnswerRe: Multiple database support... example [modified] Pin
Jessn9-Dec-08 11:40
Jessn9-Dec-08 11:40 

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.