Transaction = tran; int result = cmd.ExecuteNonQuery();. if (result == 0) { tran.Rollback(); //交易取消 } else { tran.Commit(); //執行交易 }
確定! 回上一頁