Allow loading of Database options for DB provider (#14466)

This commit is contained in:
JPVenson
2025-07-15 03:39:43 +03:00
committed by GitHub
parent e9d92bdcb0
commit 310a54f090
3 changed files with 13 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ public static class ServiceCollectionExtensions
serviceCollection.AddPooledDbContextFactory<JellyfinDbContext>((serviceProvider, opt) =>
{
var provider = serviceProvider.GetRequiredService<IJellyfinDatabaseProvider>();
provider.Initialise(opt);
provider.Initialise(opt, efCoreConfiguration);
var lockingBehavior = serviceProvider.GetRequiredService<IEntityFrameworkCoreLockingBehavior>();
lockingBehavior.Initialise(opt);
});