mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 02:29:39 +08:00
-
This commit is contained in:
@@ -1010,7 +1010,8 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
private ISugarQueryable<T> CopyQueryable()
|
private ISugarQueryable<T> CopyQueryable()
|
||||||
{
|
{
|
||||||
var asyncContext = this.Context.CopyContext(this.Context.CurrentConnectionConfig);
|
var asyncContext = this.Context.CopyContext(this.Context.RewritableMethods.TranslateCopy(this.Context.CurrentConnectionConfig));
|
||||||
|
asyncContext.CurrentConnectionConfig.IsAutoCloseConnection = true;
|
||||||
asyncContext.Ado.IsEnableLogEvent = this.Context.Ado.IsEnableLogEvent;
|
asyncContext.Ado.IsEnableLogEvent = this.Context.Ado.IsEnableLogEvent;
|
||||||
asyncContext.Ado.LogEventStarting = this.Context.Ado.LogEventStarting;
|
asyncContext.Ado.LogEventStarting = this.Context.Ado.LogEventStarting;
|
||||||
asyncContext.Ado.LogEventCompleted = this.Context.Ado.LogEventCompleted;
|
asyncContext.Ado.LogEventCompleted = this.Context.Ado.LogEventCompleted;
|
||||||
|
Reference in New Issue
Block a user