File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
RepoDb.Core/RepoDb.Tests/RepoDb.IntegrationTests/Operations Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1161,7 +1161,7 @@ public void TestSqlConnectionExecuteQueryMultipleForMultipleTypes()
11611161 var identityTables = Helper . CreateIdentityTables ( 10 ) . AsList ( ) ;
11621162 var nonIdentityTables = Helper . CreateNonIdentityTables ( 10 ) . AsList ( ) ;
11631163
1164- using ( var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) )
1164+ using ( var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) . EnsureOpen ( ) )
11651165 {
11661166 // Act
11671167 connection . InsertAll ( identityTables ) ;
@@ -1199,7 +1199,7 @@ public void TestSqlConnectionExecuteQueryMultipleAsyncForMultipleTypes()
11991199 var identityTables = Helper . CreateIdentityTables ( 10 ) . AsList ( ) ;
12001200 var nonIdentityTables = Helper . CreateNonIdentityTables ( 10 ) . AsList ( ) ;
12011201
1202- using ( var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) )
1202+ using ( var connection = new SqlConnection ( Database . ConnectionStringForRepoDb ) . EnsureOpen ( ) )
12031203 {
12041204 // Act
12051205 connection . InsertAll ( identityTables ) ;
You can’t perform that action at this time.
0 commit comments