定義了數據連接後
圖
在本例中
生成的數據適配器包含SELECT
private System
private System
private System
private System
private System
為每個SQL命令定義一個對象和一個SqlDataAdapter
在Visual Studio
//
// sqlInsertCommand
//
this
(CustomerID
ContactTitle
PostalCode
VALUES(@CustomerID
@Address
SELECT CustomerID
City
FROM Customers WHERE (CustomerID = @CustomerID)
this
this
new System
System
// Other Paramaters omitted for clarity
//
// sqlUpdateCommand
//
this
SET CustomerID = @CustomerID
ContactName = @ContactName
Address = @Address
PostalCode = @PostalCode
[
From:http://tw.wingwit.com/Article/program/net/201311/15420.html