From 9089fea0c166081b25c59b21c4d12fa438c0afda Mon Sep 17 00:00:00 2001 From: kawhi <1585955375@qq.com> Date: Sat, 19 Aug 2023 11:31:27 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=EF=BC=9A=E4=BF=AE=E6=94=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=8F=B7=EF=BC=8C=E6=8E=A8=E9=80=81=E5=88=B0nuget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 19 +++++++++++++++++++ src/common.props | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 192054d..c69abe6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,23 @@ # Luck.Framework ++ ## change 2.0.2 version + + ### Add + + **1、Luck.Framework** + + 添加System.Text.Json自定义序列化扩展; + ```c# + builder.Services.AddControllers() + .AddJsonOptions(c => + { + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.TimeOnlyJsonConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateOnlyJsonConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.TimeOnlyNullJsonConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateOnlyNullJsonConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeNullConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeOffsetConverter()); + c.JsonSerializerOptions.Converters.Add(new SystemTextJsonConvert.DateTimeOffsetNullConverter()); + }); + ``` + + ## change 2.0.1 version + ### Update + **1、Luck.DDD.Domain** diff --git a/src/common.props b/src/common.props index 508d1bb..7e9fd63 100644 --- a/src/common.props +++ b/src/common.props @@ -1,7 +1,7 @@  latest - 2.0.1 + 2.0.2 $(NoWarn);CS1591;CS0436 LGPL-3.0-only git