|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text.Json;
|
|
|
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using Volo.Abp.Data;
|
|
|
|
|
using Volo.Abp.Json.SystemTextJson.JsonConverters;
|
|
|
|
@ -49,6 +50,11 @@ namespace Volo.Abp.EntityFrameworkCore.ValueConverters
|
|
|
|
|
|
|
|
|
|
var deserializeOptions = new JsonSerializerOptions();
|
|
|
|
|
deserializeOptions.Converters.Add(new ObjectToInferredTypesConverter());
|
|
|
|
|
|
|
|
|
|
// Remove after this PR.
|
|
|
|
|
// https://github.com/dotnet/runtime/pull/51739
|
|
|
|
|
deserializeOptions.NumberHandling = JsonNumberHandling.Strict;
|
|
|
|
|
|
|
|
|
|
var dictionary = JsonSerializer.Deserialize<ExtraPropertyDictionary>(extraPropertiesAsJson, deserializeOptions) ??
|
|
|
|
|
new ExtraPropertyDictionary();
|
|
|
|
|
|
|
|
|
|