4,818
社区成员
发帖
与我相关
我的任务
分享var st = ConnectionPool[0].BeginTransaction();
using (var scu = new SqlCommand(sql, ConnectionPool[0]) { Transaction = st })
{
try
{
int k = scu.ExecuteNonQuery();
st.Commit();
return k;
}
catch
{
st.Rollback();
throw;
}
}