Monday, March 05, 2007

Upgrade your May CTP VB LINQ Samples to Orcas March CTP

If you are playing with LINQ in Visual Basic, you'll probably want to check out Jim Wooley's post on how to convert a VB LINQ project from the May 2006 LINQ CTP to the March 2007 Orcas CTP. The syntax has changed including the order of the Order By and Select clauses. Even though it may look weird to the SQL people, there is a good reason for it, actually. Putting the Order By clause fixes a scoping issue where you now don't have to select the fields you want to order by. There's also now no need to put a := for named parameters, you can use the more normal =. Anonymous types also have a new syntax. Better intellisense should help you out. Julie also has some good information as well so check her (I mean her blog) out.

2 comments:

Jim Wooley said...

Glad you liked the post. If you're at the MVP summit, be sure to say hi if you see me. Jim

Beth Massi said...

Yep, I'll be there. Keep an eye out for me as well ;-)