Browse Source

Fixed sqlserver connection async issue

master
Savorboard 5 years ago
parent
commit
f37fd9ac09
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP.SqlServer/IStorageInitializer.SqlServer.cs

+ 1
- 1
src/DotNetCore.CAP.SqlServer/IStorageInitializer.SqlServer.cs View File

@@ -44,7 +44,7 @@ namespace DotNetCore.CAP.SqlServer
if (cancellationToken.IsCancellationRequested) return;

var sql = CreateDbTablesScript(_options.Value.Schema);
using (var connection = new SqlConnection(_options.Value.ConnectionString))
await using (var connection = new SqlConnection(_options.Value.ConnectionString))
{
await connection.ExecuteAsync(sql);
}


Loading…
Cancel
Save