DevTeach Day 2 - LINQ to Everything

Published 15 May 08 09:17 AM

Before I post about DevTeach Day 3 I thought I'd report back how the LINQ session I did yesterday evening. I mentioned yesterday that I volunteered to fill in for Roy Osherove because he ended up in the hospital. Good news is that he emailed this morning and he was released with some medicine, so he should start feeling better soon.

I called the session LINQ to Everything. For winging a LINQ session I think it went extremely well. As a matter of fact I'll probably polish it up a bit more and use it again in the future. I decided there should be a simple agenda and then encourage a lot of interaction and questions from the crowd to shape the talk and mold the examples. It worked well. I started with explaining at a high level the LINQ framework architecture and what major LINQ providers were available in Visual Studio 2008, but also mentioned LINQ to Entities that is available in SP1.

Next up LOTS of samples. I had a question about LINQ to Objects and showed how to query all the processes on my machine. Then I moved quickly to a data discussion (what do you expect from a business programmer ;-)) showing LINQ to SQL and LINQ to Datasets pointing out the differences to each approach and the considerations you have to think about when going n-tier.

Finally I ended with a discussion on LINQ to XML (my personal favorite). I typed some XML into the editor, pointed out the XElelment and XDocument classes and the benefits they have over the XML DOM, enabled IntelliSense, queried the document and transformed the results. We were running out of time but I promised some Office Open XML tips. So I asked the crowd if we should write an Excel data app or a Word letter generator and they wanted to see how we could quickly text merge Word documents. I have an example I showed before here.

I think it went really well and the evals coming through today are validating that. LINQ makes it easy to get great marks on a session because the technology is so fun to work with :-). Here are the links I gave everyone.

LINQ to SQL examples:
http://blogs.msdn.com/bethmassi/archive/tags/Article/LINQ/Data/default.aspx

LINQ to XML examples:
http://blogs.msdn.com/bethmassi/archive/tags/Article/LINQ/XML/default.aspx

More LINQ examples
http://code.msdn.microsoft.com/linqntier
http://code.msdn.microsoft.com/vbvideoslinq
http://code.msdn.microsoft.com/whatsnewvb

I'm now sitting in a cool WPF data binding session so I better pay attention. I plan on doing a series of How Do I videos on WPF data-based development so I want to compare notes with the experts. I'll report back after my VB6 to .NET Migration talk I'm doing later with Rob Windsor.

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

No Comments

Leave a Comment

(required) 
(optional)
(required) 

About Beth Massi

Beth is an Online Content and Community Program Manager on the Visual Studio Community Team responsible for producing content for business application developers and driving community features onto MSDN Developer Centers (http://msdn.com/). She also produces content on her blog (http://blogs.msdn.com/bethmassi), Channel 9 (http://channel9.msdn.com/), and a variety of other developer sites. As a Visual Basic community champion and a long-time member of the Microsoft community she also helps with the San Francisco East Bay .NET user group and is a frequent speaker at various software development events. Before Microsoft, she was a Senior Architect at a health care software product company and a Microsoft Solutions Architect MVP. Over the last decade she has worked on distributed applications and frameworks, web and Windows-based applications using Microsoft development tools in a variety of businesses. She loves teaching, hiking, mountain biking, and modifying cars.
Page view tracker