Fixed: Don't ignore default Boolean in db serialization

This commit is contained in:
Qstick 2021-02-10 21:52:48 +00:00 committed by ta264
parent eaf46b0550
commit 16b3817202
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ public EmbeddedDocumentConverter()
var serializerSettings = new JsonSerializerOptions
{
AllowTrailingCommas = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
PropertyNameCaseInsensitive = true,
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,

View file

@ -22,7 +22,7 @@ protected ProviderRepository(IMainDatabase database, IEventAggregator eventAggre
var serializerSettings = new JsonSerializerOptions
{
AllowTrailingCommas = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingDefault,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
PropertyNameCaseInsensitive = true,
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,