Skip to content

Commit 541442b

Browse files
committed
Remove the ATTACH DATABASE command
It's not even actually needed for SQLite tests
1 parent 74e0ced commit 541442b

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

tests/PhenX.EntityFrameworkCore.BulkInsert.Tests/DbContainer/TestDbContainerSqlite.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ public sealed class TestDbContainerSqlite : IDbContextFactory, IDisposable
2323
_connection = new SqliteConnection("DataSource=:memory:");
2424
await _connection.OpenAsync();
2525

26-
await using var attachCommand = new SqliteCommand($"ATTACH DATABASE ':memory:' as {databaseName}", _connection);
27-
await attachCommand.ExecuteNonQueryAsync();
28-
2926
var dbContext = new TDbContext
3027
{
3128
ConfigureOptions = builder => builder.UseSqlite(_connection).UseBulkInsertSqlite(),

0 commit comments

Comments
 (0)