标题: Using Linq for Master Detail in a DataGridView [打印本页] 作者: xblues 时间: 8-7-2008 04:51
提示: 作者被禁止或删除, 无法发言标题: Using Linq for Master Detail in a DataGridView Windows Forms Data Controls and Databinding
Step 1
Open up Visual Studio 2008 Beta 2 and create a windows forms application
Step 2
Add a new Linq to Sql classes to the project I named mine Northwind.dbml
Step 3
I dragged the Northwind databases Orders and Order Details tables on the surface
Step 4
Save the project and build it
Step 5 这一步是关键
Open the datasources window and add a new object data source. Select the Orders table