using (TransactionScope ts = new TransactionScope())
{
}
{
//需要添加事务的 代码开始
//结束
}
//需要添加事务的 代码开始
//结束