mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Rename
This commit is contained in:
parent
47269f5aca
commit
616dff1679
@ -6,11 +6,11 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace SqlSugar
|
||||
{
|
||||
public class SqlSguarTransaction:IDisposable
|
||||
public class SqlSugarTransaction:IDisposable
|
||||
{
|
||||
private readonly SqlSugarClient context;
|
||||
|
||||
public SqlSguarTransaction(SqlSugarClient client)
|
||||
public SqlSugarTransaction(SqlSugarClient client)
|
||||
{
|
||||
context = client;
|
||||
context.BeginTran();
|
||||
|
@ -13,7 +13,7 @@ namespace SqlSugar
|
||||
void RollbackTran();
|
||||
void ChangeDatabase(dynamic configId);
|
||||
void ChangeDatabase(Func<ConnectionConfig, bool> changeExpression);
|
||||
SqlSguarTransaction UseTran();
|
||||
SqlSugarTransaction UseTran();
|
||||
DbResult<bool> UseTran(Action action, Action<Exception> errorCallBack = null);
|
||||
Task<DbResult<bool>> UseTranAsync(Func<Task> action, Action<Exception> errorCallBack = null);
|
||||
DbResult<T> UseTran<T>(Func<T> action, Action<Exception> errorCallBack = null);
|
||||
|
@ -588,9 +588,9 @@ namespace SqlSugar
|
||||
var tenant= this as ITenant;
|
||||
return tenant;
|
||||
}
|
||||
public SqlSguarTransaction UseTran()
|
||||
public SqlSugarTransaction UseTran()
|
||||
{
|
||||
return new SqlSguarTransaction(this);
|
||||
return new SqlSugarTransaction(this);
|
||||
}
|
||||
public void AddConnection(ConnectionConfig connection)
|
||||
{
|
||||
|
@ -612,7 +612,7 @@ namespace SqlSugar
|
||||
{
|
||||
return ScopedContext.SplitHelper(dataList);
|
||||
}
|
||||
public SqlSguarTransaction UseTran()
|
||||
public SqlSugarTransaction UseTran()
|
||||
{
|
||||
return ScopedContext.UseTran();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user