Add db.CopyNew

This commit is contained in:
sunkaixuan
2022-08-01 15:57:01 +08:00
parent 12a9fe1a87
commit 01b498d699
2 changed files with 9 additions and 1 deletions

View File

@@ -1341,7 +1341,11 @@ namespace SqlSugar
} }
#endregion #endregion
#region #region Other
public SqlSugarClient CopyNew()
{
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
}
public void ThenMapper<T>(IEnumerable<T> list, Action<T> action) public void ThenMapper<T>(IEnumerable<T> list, Action<T> action)
{ {
MapperContext<T> result = new MapperContext<T>(); MapperContext<T> result = new MapperContext<T>();

View File

@@ -706,6 +706,10 @@ namespace SqlSugar
{ {
return ScopedContext.UpdateNav(datas); return ScopedContext.UpdateNav(datas);
} }
public SqlSugarClient CopyNew()
{
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
}
#endregion #endregion
} }
} }