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