SharpRush中的跨函数事务实现
using(TransactionContext context=TransactionContext.Instance())
{
CustomerEntity customer = new CustomerEntity(cutomerGuid);
customer.CustomerName="test";
customer.Save();
}
{
CustomerEntity customer = new CustomerEntity(cutomerGuid);
customer.CustomerName="test";
customer.Save();
}