diff --git a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs index f372793d4..38f3ccfb4 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs @@ -135,28 +135,7 @@ namespace SqlSugar this.Context.CurrentConnectionConfig.IsAutoCloseConnection = false; this.Open(); return result; - } - public async Task CloseAsync() - { - if (this.Transaction != null) - { - this.Transaction = null; - } - if (this.Connection != null && this.Connection.State == ConnectionState.Open) - { - await ((DbConnection)this.Connection).CloseAsync(); - } - if (this.IsMasterSlaveSeparation && this.SlaveConnections.HasValue()) - { - foreach (var slaveConnection in this.SlaveConnections) - { - if (slaveConnection != null && slaveConnection.State == ConnectionState.Open) - { - await ((DbConnection)slaveConnection).CloseAsync(); - } - } - } - } + } public virtual void Close() { if (this.Transaction != null)