Click here to Skip to main content
15,900,973 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: Canal Manager framework for distributed application Pin
amspb19-Oct-08 22:14
amspb19-Oct-08 22:14 
GeneralRe: Canal Manager framework for distributed application Pin
Mark Churchill10-Oct-08 0:06
Mark Churchill10-Oct-08 0:06 
GeneralRe: Canal Manager framework for distributed application Pin
amspb113-Oct-08 0:29
amspb113-Oct-08 0:29 
QuestionNon-centralized app design - Good idea? Pin
Scott Barbour7-Oct-08 12:57
Scott Barbour7-Oct-08 12:57 
AnswerRe: Non-centralized app design - Good idea? Pin
Mark Churchill7-Oct-08 18:46
Mark Churchill7-Oct-08 18:46 
AnswerRe: Non-centralized app design - Good idea? Pin
led mike8-Oct-08 5:33
led mike8-Oct-08 5:33 
QuestionCan anyone please have a look at this problem and suggest a code architecture??! URGENT HELP NEEDED!! Thanks in advance (: Pin
amit jindal6-Oct-08 1:02
amit jindal6-Oct-08 1:02 
Questionimplementing effective searching in business code(maybe with linq?) Pin
giddy_guitarist5-Oct-08 7:35
giddy_guitarist5-Oct-08 7:35 
hi,


If I have something like:

class Person
{
 //functions:
 static Person[] GetAllPersons();
 static Person[] Search(string field,string value);
}


In the second function I would do something like build an sql query like this:
SELECT ........... WHERE field = value
and send it through another data class to retrieve the right Persons.

eg:
Person[] teens = Person.Search("Age",18);

Firstly the biggest problem searching with AND, >,<, OR, Between etc.? Which terribly limits the search.I could make more functions for that, but its turns into a little bit of a mess. Is there a better/more generic way to build a query on the fly?

Would I benefit by using Linq instead/would it be more efficient to load all persons in memory and then search them with linq? If I were to use linq how again would I write a function to build a query on the fly?

Thanks so much

Gideon
AnswerRe: implementing effective searching in business code(maybe with linq?) Pin
Pete O'Hanlon5-Oct-08 11:21
mvePete O'Hanlon5-Oct-08 11:21 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
giddy_guitarist5-Oct-08 17:37
giddy_guitarist5-Oct-08 17:37 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
Pete O'Hanlon5-Oct-08 22:07
mvePete O'Hanlon5-Oct-08 22:07 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
giddy_guitarist5-Oct-08 22:31
giddy_guitarist5-Oct-08 22:31 
AnswerRe: implementing effective searching in business code(maybe with linq?) Pin
Mark Churchill5-Oct-08 21:08
Mark Churchill5-Oct-08 21:08 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
giddy_guitarist5-Oct-08 22:45
giddy_guitarist5-Oct-08 22:45 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
Mark Churchill5-Oct-08 23:18
Mark Churchill5-Oct-08 23:18 
GeneralRe: implementing effective searching in business code(maybe with linq?) Pin
giddy_guitarist9-Oct-08 20:40
giddy_guitarist9-Oct-08 20:40 
QuestionDistributed Computing Special Pin
abhigad2-Oct-08 19:50
abhigad2-Oct-08 19:50 
QuestionXSS-CGI-RFI-SQL Injection Scanner Project Help Pin
Fuat Mx1-Oct-08 22:25
Fuat Mx1-Oct-08 22:25 
AnswerRe: XSS-CGI-RFI-SQL Injection Scanner Project Help Pin
ozguryasarakyar26-Dec-09 12:24
ozguryasarakyar26-Dec-09 12:24 
GeneralRe: XSS-CGI-RFI-SQL Injection Scanner Project Help Pin
Fuat Mx26-Dec-09 21:27
Fuat Mx26-Dec-09 21:27 
QuestionIntegrating scripting languages with "low-level" languages. Pin
Leslie Sanford1-Oct-08 19:45
Leslie Sanford1-Oct-08 19:45 
AnswerRe: Integrating scripting languages with "low-level" languages. Pin
led mike2-Oct-08 5:27
led mike2-Oct-08 5:27 
QuestionImplementing Model View Presenter Pin
Giorgi Dalakishvili30-Sep-08 22:18
mentorGiorgi Dalakishvili30-Sep-08 22:18 
AnswerRe: Implementing Model View Presenter Pin
stavinski1-Oct-08 3:29
stavinski1-Oct-08 3:29 
GeneralRe: Implementing Model View Presenter Pin
Giorgi Dalakishvili2-Oct-08 22:41
mentorGiorgi Dalakishvili2-Oct-08 22:41 

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.