README File for the LINQ2SQL.sln Project

1. If you want to keep your current Northwind sample database unchanged, Unzip NwindLINQ.mdf and NwindLINQ.ldf from NwindLINQ.zip to your SQL Server Express instance's ...\MSSQL\Data folder and attach it to your SQL Server Express instance.

Otherwise, proceed with step 2 and open the project's Properties window and change the connection string Server= value from NwindLINQ to Northwind.

2. Unzip the project files from LINQ2SQL.zip with the Use Folder Names check box marked to create a \LINQ2SQL folder and subfolders.

3. Run the project, which loads the Customers LINQ table to the CustomersBindingSource and lazy loads the Orders and Order Details grids from related LINQ tables.

4. Select Queries and click the Reload With button to populate the CustomersBindingSource with a LINQ query and load the Orders and OrderDetails grids with data for the selected customer.

5. Select SProc and click the Reload With button to replace the query data sources with stored procedures.

6. You can update and delete orders and order details, but you can't reliably insert new orders with this project running under VS 2008 Beta 1. Hopefully, this issue will be corrected when the VS team releases Beta 2. Check the OakLeaf Systems blog after Beta 2 releases for an updated version.

Roger Jennings
roger_jennings@compuserve.com
