mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 02:44:58 +08:00
Add db.CopyNew
This commit is contained in:
@@ -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>();
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user