File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/EFCore.PG/Migrations/Internal Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,14 +78,14 @@ public override void Migrate(string? targetMigration = null)
78
78
79
79
if ( reloadTypes && _connection . DbConnection is NpgsqlConnection npgsqlConnection )
80
80
{
81
- npgsqlConnection . Open ( ) ;
81
+ _connection . Open ( ) ;
82
82
try
83
83
{
84
84
npgsqlConnection . ReloadTypes ( ) ;
85
85
}
86
86
catch
87
87
{
88
- npgsqlConnection . Close ( ) ;
88
+ _connection . Close ( ) ;
89
89
}
90
90
}
91
91
}
@@ -125,14 +125,14 @@ public override async Task MigrateAsync(
125
125
126
126
if ( reloadTypes && _connection . DbConnection is NpgsqlConnection npgsqlConnection )
127
127
{
128
- await npgsqlConnection . OpenAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
128
+ await _connection . OpenAsync ( cancellationToken ) . ConfigureAwait ( false ) ;
129
129
try
130
130
{
131
131
await npgsqlConnection . ReloadTypesAsync ( ) . ConfigureAwait ( false ) ;
132
132
}
133
133
catch
134
134
{
135
- await npgsqlConnection . CloseAsync ( ) . ConfigureAwait ( false ) ;
135
+ await _connection . CloseAsync ( ) . ConfigureAwait ( false ) ;
136
136
}
137
137
}
138
138
}
You can’t perform that action at this time.
0 commit comments