Visual Basic Blog

A group blog from members of the VB team

LINQ Cookbook, Recipe 10: Pre-compiling Queries for Performance (Doug Rothaus)

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ to SQL Introduction:As we add cookbook entries, we will include performance improvement tips where appropriate. Here’s a tip that you can use with LINQ to SQL to speed up queries that you will call numerous...

LINQ Cookbook, Recipe 9: Dynamic Sort Order (Doug Rothaus)

Ingredients:·         Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-XML Introduction:You can use the Order By clause to easily sort the results of a LINQ query in Visual Basic. A common requirement for sorted data, however, is that the user be able to choose the fields that ...

XML to Schema Tool for Visual Basic 2008 (Beth Massi)

This week we posted a new tool called the XML to Schema Tool that allows you to easily import XML and infer schemas. The tool runs when when you add a new item to your VB 9 project and select the XML to Schema new item template (look under My Templates after you install). This allows you to work with XML much easier in Visual Basic 9 by ...

Implementing Dynamic Searching Using LINQ

A common requirement in forms-over-data applications is that users be able to search by any combination of fields to construct a dynamic query at run time.  For example, the search feature in this application allows the user to find all records that meet criteria defined on multiple columns:       LINQ makes it easy to ...

Channel 9 Interview – LINQ to SQL and the O/R Designer in VS 2008 (Beth Massi)

I just posted another great interview on Channel 9 with Young Joo talking about LINQ to SQL and the new O/R Designer in Visual Studio 2008. He demos a typical business client-server scenario and shows how LINQ to SQL classes make it much easier to work with relational data in SQL Server 2005. Young also talks about architectures ...

Kit George and Chris Smith on Channel9 (Beth Massi)

I posted a couple more videos on Channel9 that you'll definitely want to check out! Thanks again to Kathleen for helping with the production.The first one Kit George walks us through some of his favorite VB9 language features that enable LINQ:In this in interview Kit George, a Program Manager on the Visual Basic Team and a former ...