mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
24 lines
472 B
C#
24 lines
472 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar
|
|
{
|
|
public class SqlSguarTransaction
|
|
{
|
|
private readonly SqlSugarClient context;
|
|
|
|
public SqlSguarTransaction(SqlSugarClient client)
|
|
{
|
|
context = client;
|
|
context.BeginTran();
|
|
}
|
|
public void Dispose()
|
|
{
|
|
context.RollbackTran();
|
|
}
|
|
}
|
|
}
|