Commit 4eaf7a0b authored by Savorboard's avatar Savorboard

Fix SqlConnection undisponse bug. #477

parent ba182aec
......@@ -201,7 +201,7 @@ namespace DotNetCore.CAP.SqlServer
var result = new List<MediumMessage>();
var connection = new SqlConnection(_options.Value.ConnectionString);
using var connection = new SqlConnection(_options.Value.ConnectionString);
var reader = await connection.ExecuteReaderAsync(sql);
while (reader.Read())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment