Browse Source
Merge pull request #18021 from abpframework/Public-JsonSerializerOptions
pull/18052/head
liangshiwei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
3 deletions
-
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/ValueConverters/AbpJsonValueConverter.cs
-
framework/src/Volo.Abp.EntityFrameworkCore/Volo/Abp/EntityFrameworkCore/ValueConverters/ExtraPropertiesValueConverter.cs
|
|
@ -19,7 +19,7 @@ public class AbpJsonValueConverter<TPropertyType> : ValueConverter<TPropertyType |
|
|
return JsonSerializer.Serialize(d); |
|
|
return JsonSerializer.Serialize(d); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static readonly JsonSerializerOptions DeserializeOptions = new JsonSerializerOptions() |
|
|
public readonly static JsonSerializerOptions DeserializeOptions = new JsonSerializerOptions() |
|
|
{ |
|
|
{ |
|
|
Converters = |
|
|
Converters = |
|
|
{ |
|
|
{ |
|
|
|
|
|
@ -1,7 +1,6 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Text.Json; |
|
|
using System.Text.Json; |
|
|
using System.Text.Json.Serialization; |
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion; |
|
|
using Volo.Abp.Data; |
|
|
using Volo.Abp.Data; |
|
|
using Volo.Abp.Json.SystemTextJson.JsonConverters; |
|
|
using Volo.Abp.Json.SystemTextJson.JsonConverters; |
|
|
@ -41,7 +40,7 @@ public class ExtraPropertiesValueConverter : ValueConverter<ExtraPropertyDiction |
|
|
return JsonSerializer.Serialize(copyDictionary); |
|
|
return JsonSerializer.Serialize(copyDictionary); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static readonly JsonSerializerOptions DeserializeOptions = new JsonSerializerOptions() |
|
|
public static readonly JsonSerializerOptions DeserializeOptions = new JsonSerializerOptions() |
|
|
{ |
|
|
{ |
|
|
Converters = |
|
|
Converters = |
|
|
{ |
|
|
{ |
|
|
|