From 6770c37c88e6e16ac84cb7bd5df2792a24cb4d67 Mon Sep 17 00:00:00 2001 From: witskeeper Date: Fri, 15 Nov 2024 09:56:16 +0800 Subject: [PATCH] break change: move NewtonsoftEntityIdJsonConverter to NetCorePal.Extensions.NewtonsoftJson --- src/AspNetCore/NetCorePal.Extensions.AspNetCore.csproj | 1 + src/AspNetCore/ServiceCollectionExtension.cs | 2 +- src/NewtonsoftJson/NetCorePal.Extensions.NewtonsoftJson.csproj | 3 +++ .../Json => NewtonsoftJson}/NewtonsoftEntityIdJsonConverter.cs | 2 +- .../NewtonsoftEntityIdJsonConverterTests.cs | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) rename src/{AspNetCore/Json => NewtonsoftJson}/NewtonsoftEntityIdJsonConverter.cs (97%) diff --git a/src/AspNetCore/NetCorePal.Extensions.AspNetCore.csproj b/src/AspNetCore/NetCorePal.Extensions.AspNetCore.csproj index c178a680..402a6a06 100644 --- a/src/AspNetCore/NetCorePal.Extensions.AspNetCore.csproj +++ b/src/AspNetCore/NetCorePal.Extensions.AspNetCore.csproj @@ -17,6 +17,7 @@ + diff --git a/src/AspNetCore/ServiceCollectionExtension.cs b/src/AspNetCore/ServiceCollectionExtension.cs index ee4e2578..32514d1e 100644 --- a/src/AspNetCore/ServiceCollectionExtension.cs +++ b/src/AspNetCore/ServiceCollectionExtension.cs @@ -3,10 +3,10 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.DependencyInjection; using NetCorePal.Extensions.AspNetCore; -using NetCorePal.Extensions.AspNetCore.Json; using NetCorePal.Extensions.AspNetCore.Validation; using NetCorePal.Extensions.Domain.Json; using NetCorePal.Extensions.Dto; +using NetCorePal.Extensions.NewtonsoftJson; using NetCorePal.Extensions.Primitives; namespace NetCorePal.Extensions.DependencyInjection; diff --git a/src/NewtonsoftJson/NetCorePal.Extensions.NewtonsoftJson.csproj b/src/NewtonsoftJson/NetCorePal.Extensions.NewtonsoftJson.csproj index e13e1645..33367547 100644 --- a/src/NewtonsoftJson/NetCorePal.Extensions.NewtonsoftJson.csproj +++ b/src/NewtonsoftJson/NetCorePal.Extensions.NewtonsoftJson.csproj @@ -8,4 +8,7 @@ + + + diff --git a/src/AspNetCore/Json/NewtonsoftEntityIdJsonConverter.cs b/src/NewtonsoftJson/NewtonsoftEntityIdJsonConverter.cs similarity index 97% rename from src/AspNetCore/Json/NewtonsoftEntityIdJsonConverter.cs rename to src/NewtonsoftJson/NewtonsoftEntityIdJsonConverter.cs index b2a66fa1..d846bde9 100644 --- a/src/AspNetCore/Json/NewtonsoftEntityIdJsonConverter.cs +++ b/src/NewtonsoftJson/NewtonsoftEntityIdJsonConverter.cs @@ -2,7 +2,7 @@ using NetCorePal.Extensions.Domain; using Newtonsoft.Json; -namespace NetCorePal.Extensions.AspNetCore.Json; +namespace NetCorePal.Extensions.NewtonsoftJson; public class NewtonsoftEntityIdJsonConverter : JsonConverter { diff --git a/test/NetCorePal.Extensions.AspNetCore.UnitTests/NewtonsoftEntityIdJsonConverterTests.cs b/test/NetCorePal.Extensions.AspNetCore.UnitTests/NewtonsoftEntityIdJsonConverterTests.cs index 675b71fd..11bfb8a7 100644 --- a/test/NetCorePal.Extensions.AspNetCore.UnitTests/NewtonsoftEntityIdJsonConverterTests.cs +++ b/test/NetCorePal.Extensions.AspNetCore.UnitTests/NewtonsoftEntityIdJsonConverterTests.cs @@ -1,4 +1,4 @@ -using NetCorePal.Extensions.AspNetCore.Json; +using NetCorePal.Extensions.NewtonsoftJson; using NetCorePal.Extensions.Domain; using Newtonsoft.Json;