Dispose Async
await using (var dbConnection = new SqlConnection(connString)) | |
{ | |
// Use your DB connection. | |
// The connection will get disposed of asynchronously at the end of the using block. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment