diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index 840504f..3c39eed 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -115,7 +115,7 @@ public class Program builder.Services.Configure(builder.Configuration); builder.Services.AddApplication(); - builder.Services.AddPersistence(builder.Configuration.Get()?.DbSettings?.ConnectionStringSql ?? string.Empty); + builder.Services.AddPersistence(generalConfig?.DbSettings?.DatabaseProvider ?? DatabaseProvider.Sqlite, generalConfig?.DbSettings?.ConnectionStringSql ?? string.Empty); builder.Services.AddControllers(); builder.Services.AddSingleton();