代码如下: public bool SaveSMSMessage(SMSBatch smsBatch, DataSet smsMessages) { //using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Suppress)) //{ foreach (DataRow row in smsMessages.Tables[0].Rows) row.SetModified(); SqlDatabase db