Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparism on two SQLs
Message
From
09/04/2012 11:35:13
 
 
To
09/04/2012 09:58:56
General information
Forum:
ASP.NET
Category:
LINQ
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01540656
Message ID:
01540671
Views:
53
This message has been marked as a message which has helped to the initial question of the thread.
There must be a difference between VB's implementation of LINQ and C#'s implementation, because in C# I can't even write the first query without getting a compiler syntax error ("A query body must end with a select clause or a group clause").

~~Bonnie



>I need to know if those two SQLs are equal. Basically, the only different is the Select s in the second one.
>
>
>                oClient = (From s
>                 In oClientAPI.GetClientForSpecific()
>                 Where s.ClientId = nClientID).FirstOrDefault()
>
>
>
>                oClient = (From s
>                 In oClient.GetClientForSpecific()
>                 Where s.ClientId = nClientID
>                 Select s).FirstOrDefault()
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform