mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Add db.CopyNew
This commit is contained in:
@@ -1341,7 +1341,11 @@ namespace SqlSugar
|
||||
}
|
||||
#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)
|
||||
{
|
||||
MapperContext<T> result = new MapperContext<T>();
|
||||
|
@@ -706,6 +706,10 @@ namespace SqlSugar
|
||||
{
|
||||
return ScopedContext.UpdateNav(datas);
|
||||
}
|
||||
public SqlSugarClient CopyNew()
|
||||
{
|
||||
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user