Update db.CopyNew

This commit is contained in:
sunkaixuan
2022-11-08 22:12:49 +08:00
parent f482c72424
commit 432fff1b0b
2 changed files with 6 additions and 2 deletions

View File

@@ -1427,7 +1427,9 @@ namespace SqlSugar
}
public SqlSugarClient CopyNew()
{
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
var result= new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
result.QueryFilter = this.QueryFilter;
return result;
}
public void ThenMapper<T>(IEnumerable<T> list, Action<T> action)
{

View File

@@ -1065,7 +1065,9 @@ namespace SqlSugar
}
public SqlSugarClient CopyNew()
{
return new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
var result= new SqlSugarClient(UtilMethods.CopyConfig(this.Ado.Context.CurrentConnectionConfig));
result.QueryFilter = this.QueryFilter;
return result;
}
public DateTime GetDate()
{