|
@@ -66,8 +66,7 @@ namespace Jellyfin.Server
|
|
// TODO: Set up scoping and use AddDbContextPool
|
|
// TODO: Set up scoping and use AddDbContextPool
|
|
serviceCollection.AddDbContext<JellyfinDb>(
|
|
serviceCollection.AddDbContext<JellyfinDb>(
|
|
options => options
|
|
options => options
|
|
- .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}")
|
|
|
|
- .UseLazyLoadingProxies(),
|
|
|
|
|
|
+ .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}"),
|
|
ServiceLifetime.Transient);
|
|
ServiceLifetime.Transient);
|
|
|
|
|
|
serviceCollection.AddSingleton<JellyfinDbProvider>();
|
|
serviceCollection.AddSingleton<JellyfinDbProvider>();
|