Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparism on two SQLs
Message
De
11/04/2012 09:50:07
 
 
À
09/04/2012 12:20:41
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01540656
Message ID:
01541042
Vues:
33
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform