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