Thư viện tri thức trực tuyến
Kho tài liệu với 50,000+ tài liệu học thuật
© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu Defining a Relationship Using Visual Studio .NET doc
Nội dung xem thử
Mô tả chi tiết
Defining a Relationship Using Visual Studio .NET
In this section, you'll see how to create a Windows application in Visual Studio .NET
(VS .NET) with a DataSet containing two DataTable objects. These DataTable objects
will reference the Customers and Orders database tables. You'll then learn how to define
a relationship between the two DataTable objects in the XML schema.
Create the Windows Application
Perform the following steps to create the Windows application:
1. Open VS .NET and select File ➣ New ➣ Project and create a new Windows
Application. Enter the name of the project as DataRelation, as shown in Figure
12.2.
Figure 12.2: Creating the Windows application
2. Click the OK button to continue.
3. Open Server Explorer and connect to the Northwind database using the connection
you used in the previous chapters. You can open Server Explorer by selecting
View ➣ Server Explorer. Expand the Tables node in the tree and select both the
Customers and Orders tables by Ctrl +left-clicking each table, as shown in Figure
12.3.