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 {