From 993e66a0841c416cfcff22d05b5e98f4effc3aed Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 1 Jun 2024 11:11:21 +0300 Subject: [PATCH] fix: add JsonIgnore to calculated property --- Endpoint/Configuration/General/Settings/DbSettings.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Endpoint/Configuration/General/Settings/DbSettings.cs b/Endpoint/Configuration/General/Settings/DbSettings.cs index e8a8bb1..09eace8 100644 --- a/Endpoint/Configuration/General/Settings/DbSettings.cs +++ b/Endpoint/Configuration/General/Settings/DbSettings.cs @@ -2,6 +2,7 @@ using Mirea.Api.Endpoint.Configuration.General.Attributes; using Mirea.Api.Endpoint.Configuration.General.Interfaces; using System; +using System.Text.Json.Serialization; namespace Mirea.Api.Endpoint.Configuration.General.Settings; @@ -17,6 +18,7 @@ public class DbSettings : IIsConfigured public DatabaseEnum TypeDatabase { get; set; } public required string ConnectionStringSql { get; set; } + [JsonIgnore] public DatabaseProvider DatabaseProvider => TypeDatabase switch {