Bug fix: Spent hours hunting down why database files weren't closing correctly. New to EF Core 6 "SQLite: Connections are pooled" " This results in database files being kept open by the process even after the ADO.NET connection object is closed." wtf microsoft?!

This commit is contained in:
Robert McRackan 2021-12-06 12:00:12 -05:00
parent b260554a2a
commit 2acb9ca7e5
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>6.5.6.1</Version>
<Version>6.5.7.1</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -6,6 +6,6 @@ namespace LibationFileManager
{
// not customizable. don't move to config
private static string databasePath => Path.Combine(Configuration.Instance.LibationFiles, "LibationContext.db");
public static string ConnectionString => $"Data Source={databasePath};Foreign Keys=False;";
public static string ConnectionString => $"Data Source={databasePath};Foreign Keys=False;Pooling=False;";
}
}