一旦已經將數據寫入到Orders表中
cmd
cmd
cmd
cmd
cmd
cmd
cmd
For Each item As CartItem In Profile
cmd
cmd
cmd
cmd
Next
Profile
下一部分是異常處理程序
Catch Sqlex As Exception
If trans IsNot Nothing Then
trans
End If
Tools
Throw New Exception(
[
From:http://tw.wingwit.com/Article/program/net/201311/15648.html