Frank La Vigne

Fear and Loathing in .NET

MVP Logo
Tablet PC MVP

Social Networks

Subscription Options

Add to Google

Subscribe in Bloglines

My Links


Post Categories

Archives

Image Galleries

Cached @ 9/3/2010 2:51:19 AMControl ASP.skins_marvin3_controls_archivelinks_ascx

GamerTag

Dev Community Events

Blog Stats

Cached @ 9/3/2010 2:51:19 AMControl ASP.skins_marvin3_controls_blogstats_ascx  

News


Blog Roll

Favorite Sites

Gadget Blogs

Tablet PC Links

Cached @ 9/3/2010 2:51:19 AMControl ASP.skins_marvin3_controls_categorydisplay_ascx

LINQ vs SQL Reference Table

LINQ is a great technology and has made me rethink the way I process data in code.

Although similar in many ways to SQL, LINQ's designers changed a few things in translation.

These changes, no matter how justified, still cause a little confusion.

Thankfully, Paul Litwin created this table comparing SQL keywords to LINQ keywords in C# and VB.

 

C# LINQ

VB LINQ

ANSI SQL

from

From

FROM

select

Select

SELECT

where

Where

WHERE

orderby

Order By

ORDER BY

join

Join

JOIN

group

Group By

GROUP BY

Distinct()

Distinct

DISTINCT

into

Into

INTO

let

Let

AS

Count(), Sum(),…

Aggregate

COUNT, SUM,… with no group

Skip()

Skip

n/a

SkipWhile()

Skip While

n/a

Take()

Take

n/a

TakeWhile()

Take While

n/a

 

Technorati Tags: ,,

posted on Friday, January 02, 2009 11:22 AM

============ Debug Build ============
Dottext Version: 0.95.2004.102
Machine Name: IIS07902
.NET Version: 2.0.50727.3053
No User
============ Debug Build ============