This example is intended as a ‘primer’ for following recipes (so we don’t repeat the same instructions multiple times). This recipe takes you through everything you need, and assumes only that you've installed Visual Studio (and in so doing, you've installed SQLExpress). Subsequent Northwind based Linq-To-Sql recipes will point to this entry.
Ingredients:
- Visual Studio 2008 (Beta2 or Higher)
We assume that SQL Express (or better) has been installed
Categories: LINQ-To-SQL, LINQ and WinForms
Instructions:
Test our project
Dim db As New NorthwindDataContext
DataGridView1.DataSource = _
From cust In db.Customers _
Where cust.City = "London" _
Order By cust.CompanyName _
Select cust.CompanyName, _
cust.ContactName, cust.Fax