fix: add JsonIgnore to calculated property
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 3m46s

This commit is contained in:
Polianin Nikita 2024-06-01 11:11:21 +03:00
parent 6797adac4f
commit 993e66a084

View File

@ -2,6 +2,7 @@
using Mirea.Api.Endpoint.Configuration.General.Attributes; using Mirea.Api.Endpoint.Configuration.General.Attributes;
using Mirea.Api.Endpoint.Configuration.General.Interfaces; using Mirea.Api.Endpoint.Configuration.General.Interfaces;
using System; using System;
using System.Text.Json.Serialization;
namespace Mirea.Api.Endpoint.Configuration.General.Settings; namespace Mirea.Api.Endpoint.Configuration.General.Settings;
@ -17,6 +18,7 @@ public class DbSettings : IIsConfigured
public DatabaseEnum TypeDatabase { get; set; } public DatabaseEnum TypeDatabase { get; set; }
public required string ConnectionStringSql { get; set; } public required string ConnectionStringSql { get; set; }
[JsonIgnore]
public DatabaseProvider DatabaseProvider => public DatabaseProvider DatabaseProvider =>
TypeDatabase switch TypeDatabase switch
{ {