tailieunhanh - Microsoft Visual C# 2010 Step by Step (P13)
Tham khảo sách 'microsoft visual c# 2010 step by step (p13)', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 570 Part V Managing Data 7. If you are using Visual C 2010 Express Edition perform the following tasks . Click New Connection. If the Choose Data Source dialog box appears in the Data source list box click Microsoft SQL Server Database File. In the Data provider drop-down list box select .NET Framework Data Provider for SQL Server if it is not already selected and then click Continue. Note If you have already created database connections previously this dialog box might not appear and the Connection Properties dialog box will be displayed. In this case click the Change button adjacent to the Data source text box. The Change Data Source dialog box appears which is the same as the Choose Data Source dialog box except that the Continue button has the legend OK instead. . In the Connection Properties dialog box in the Database file name text click Browse. . In the Select SQL Server Database File dialog box move to the folder C Program Files Microsoft SQL Server MSSQL DATA click the Northwind database file and then click Open. . In the Log on to the server section of the dialog box choose the Use Windows Authentication radio button and then click OK. 8. On the Choose Your Data Connection page of the Entity Data Model Wizard select the Save entity connection settings in as check box type NorthwindEntities this is the default name and then click Next. If you are using Visual C 2010 Express Edition a message box appears asking whether you want to add the database file to your project. Click No. 9. On the Choose Your Database Objects page verify that the Pluralize or singularize generated object names and Include foreign key columns in the model check boxes are both selected. In the Which database objects do you want to include in your model list box expand Tables and then click the Products dbo and Suppliers dbo tables. In the Model Namespace text box type NorthwindModel this is the default namespace . The following image shows the
đang nạp các trang xem trước