@ -44,6 +44,7 @@ namespace SqlSugar
#endregion
#region Other methods
SqlSugarClient CopyNew();
T CreateContext<T>(bool isTran=true) where T : SugarUnitOfWork, new();
SugarUnitOfWork CreateContext(bool isTran = true);
SplitTableContext SplitHelper<T>() where T : class, new();
@ -996,6 +996,10 @@ namespace SqlSugar
#region Other method
public SqlSugarClient CopyNew()
{
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
}
public DateTime GetDate()
return this.Context.GetDate();
@ -762,6 +762,9 @@ namespace SqlSugar
return ScopedContext.UpdateNav(datas);