Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Comparism on two SQLs
Message
From
11/04/2012 09:50:07
 
 
To
09/04/2012 12:20:41
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:
01541042
Views:
31
>Yes, there is a difference. VB implements some additional helper methods that aren't in C#. You've already found the way to do it in C# is with Lambdas.

I don't use LINQ all that much, but when I do I prefer the lambda syntax. I was playing around with JOINs one day (to answer a question on the MSDN forums) and I found the lambda syntax for JOINs to be pretty gnarly. In a JOIN scenario, I much preferred the query syntax to the lambda syntax.

~~Bonnie


>
>>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform