Click here to Skip to main content
15,902,918 members
Home / Discussions / C#
   

C#

 
GeneralRe: How would you write this in Linq? [modified] Pin
leppie12-Sep-08 5:02
leppie12-Sep-08 5:02 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:28
mvaMarc Clifton12-Sep-08 5:28 
GeneralRe: How would you write this in Linq? Pin
Marc Clifton12-Sep-08 5:35
mvaMarc Clifton12-Sep-08 5:35 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:50
leppie12-Sep-08 5:50 
GeneralRe: How would you write this in Linq? [modified] Pin
Eslam Afifi12-Sep-08 6:12
Eslam Afifi12-Sep-08 6:12 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:08
leppie12-Sep-08 5:08 
GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:25
led mike12-Sep-08 5:25 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 5:38
leppie12-Sep-08 5:38 
led mike wrote:
Huh? I'm LINQless so I have no idea what that means.


Linq has the ability to change QueryProviders based on what is being queried. So calling Linq of a database source, will translate the Linq query into SQL. Once iterating over the query, the SQL will be executed.

So what it comes down to is that SQL should be 'strong' enough to optimize a Count(select * from table where i = 0) > 0 expression into something that resembles the Any function.

That probably does not make any sense Poke tongue | ;-P

xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)

QuestionRe: How would you write this in Linq? Pin
led mike12-Sep-08 5:50
led mike12-Sep-08 5:50 
AnswerRe: How would you write this in Linq? Pin
leppie12-Sep-08 6:09
leppie12-Sep-08 6:09 
GeneralRe: How would you write this in Linq? Pin
led mike12-Sep-08 6:44
led mike12-Sep-08 6:44 
GeneralRe: How would you write this in Linq? Pin
leppie12-Sep-08 4:58
leppie12-Sep-08 4:58 
GeneralRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:08
mvePete O'Hanlon12-Sep-08 5:08 
AnswerRe: How would you write this in Linq? Pin
Pete O'Hanlon12-Sep-08 5:07
mvePete O'Hanlon12-Sep-08 5:07 
QuestionStreamWriter and seek Pin
captjack12-Sep-08 4:31
captjack12-Sep-08 4:31 
AnswerRe: StreamWriter and seek Pin
Alan N12-Sep-08 5:41
Alan N12-Sep-08 5:41 
GeneralRe: StreamWriter and seek Pin
captjack12-Sep-08 6:00
captjack12-Sep-08 6:00 
AnswerRe: StreamWriter and seek Pin
Guffa12-Sep-08 7:03
Guffa12-Sep-08 7:03 
QuestionNumber of query values and destination fields are not the same. Pin
Vimalsoft(Pty) Ltd12-Sep-08 4:29
professionalVimalsoft(Pty) Ltd12-Sep-08 4:29 
AnswerRe: Number of query values and destination fields are not the same. Pin
mark_w_12-Sep-08 4:35
mark_w_12-Sep-08 4:35 
GeneralA question back to you :p Pin
mark_w_12-Sep-08 4:48
mark_w_12-Sep-08 4:48 
GeneralRe: A question back to you :p Pin
The Cake of Deceit12-Sep-08 5:58
The Cake of Deceit12-Sep-08 5:58 
GeneralRe: A question back to you :p Pin
Vimalsoft(Pty) Ltd12-Sep-08 9:46
professionalVimalsoft(Pty) Ltd12-Sep-08 9:46 
GeneralRe: A question back to you :p Pin
Vimalsoft(Pty) Ltd12-Sep-08 9:49
professionalVimalsoft(Pty) Ltd12-Sep-08 9:49 
GeneralRe: Number of query values and destination fields are not the same. Pin
Vimalsoft(Pty) Ltd12-Sep-08 9:44
professionalVimalsoft(Pty) Ltd12-Sep-08 9:44 

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.