The Free Software Media System - Server Backend & API
Remove EF Core Proxies
Patrick Barronbefd0c7a00d0
diff --git a/Jellyfin.Data/Jellyfin.Data.csproj b/Jellyfin.Data/Jellyfin.Data.csprojindex 282ea511cf..58d1ba2f36 100644--- a/Jellyfin.Data/Jellyfin.Data.csproj+++ b/Jellyfin.Data/Jellyfin.Data.csproj@@ -21,7 +21,6 @@<ItemGroup><PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="3.1.5" /><PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.1.5" />- <PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="3.1.5" /></ItemGroup></Project>diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.csindex fe07411a68..207eaa98d1 100644--- a/Jellyfin.Server/CoreAppHost.cs+++ b/Jellyfin.Server/CoreAppHost.cs@@ -66,8 +66,7 @@ namespace Jellyfin.Server// TODO: Set up scoping and use AddDbContextPoolserviceCollection.AddDbContext<JellyfinDb>(options => options- .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}")- .UseLazyLoadingProxies(),+ .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}"),ServiceLifetime.Transient);serviceCollection.AddSingleton<JellyfinDbProvider>();