From 99ecc4af5c7dbad51f81c9e58ce2d31972706991 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Tue, 28 May 2024 06:45:31 +0300 Subject: [PATCH] fix: get connection string from configuration --- Endpoint/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Endpoint/Program.cs b/Endpoint/Program.cs index 4674bc9..7c34446 100644 --- a/Endpoint/Program.cs +++ b/Endpoint/Program.cs @@ -45,7 +45,7 @@ public class Program builder.Configuration.AddJsonFile(Settings.FilePath, optional: true, reloadOnChange: true); builder.Services.AddApplication(); - builder.Services.AddPersistence(builder.Configuration); + builder.Services.AddPersistence(builder.Configuration.Get()?.DbSettings?.ConnectionStringSql ?? string.Empty); builder.Services.AddControllers(); builder.Services.AddCors(options =>