From 9432a85e0fc788ab7253ee48bc23c295c7c2abe1 Mon Sep 17 00:00:00 2001 From: Edgar Mesquita Date: Sun, 24 Sep 2023 22:42:27 +0100 Subject: [PATCH] Fixing id parameter type --- .../Extensions/WepApplicationExtensions.cs | 4 ++-- .../eQuantic.Core.Api.Crud.csproj | 13 ++++++++----- src/eQuantic.Core.Api/eQuantic.Core.Api.csproj | 8 ++++---- .../eQuantic.Core.Application.Crud.csproj | 8 ++++---- .../eQuantic.Core.Application.csproj | 12 ++++++++---- 5 files changed, 26 insertions(+), 19 deletions(-) diff --git a/src/eQuantic.Core.Api.Crud/Extensions/WepApplicationExtensions.cs b/src/eQuantic.Core.Api.Crud/Extensions/WepApplicationExtensions.cs index d7feb13..6a16a38 100644 --- a/src/eQuantic.Core.Api.Crud/Extensions/WepApplicationExtensions.cs +++ b/src/eQuantic.Core.Api.Crud/Extensions/WepApplicationExtensions.cs @@ -218,10 +218,10 @@ private static string GetPattern(bool withId = false, Type? referenceTy var pattern = $"/{prefix}"; if (referenceType != null) { - pattern = $"/{referenceType.Name.Pluralize().Camelize()}/{{referenceId:int}}{pattern}"; + pattern = $"/{referenceType.Name.Pluralize().Camelize()}/{{referenceId}}{pattern}"; } - if (withId) pattern = $"{pattern}/{{id:int}}"; + if (withId) pattern = $"{pattern}/{{id}}"; return pattern; } diff --git a/src/eQuantic.Core.Api.Crud/eQuantic.Core.Api.Crud.csproj b/src/eQuantic.Core.Api.Crud/eQuantic.Core.Api.Crud.csproj index 98e7907..4997314 100644 --- a/src/eQuantic.Core.Api.Crud/eQuantic.Core.Api.Crud.csproj +++ b/src/eQuantic.Core.Api.Crud/eQuantic.Core.Api.Crud.csproj @@ -6,10 +6,10 @@ eQuantic Systems eQuantic.Core.Api.Crud eQuantic.Core.Api.Crud - 1.1.0.0 - 1.1.0.0 - 1.1.0.0 - net7.0 + 1.1.1.0 + 1.1.1.0 + 1.1.1.0 + net7.0;net8.0 eQuantic.Core.Api.Crud eQuantic;Core;API;CRUD;Library @@ -35,9 +35,12 @@ enable - + + + + diff --git a/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj b/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj index b168ab0..24e19b8 100644 --- a/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj +++ b/src/eQuantic.Core.Api/eQuantic.Core.Api.csproj @@ -6,10 +6,10 @@ eQuantic Systems eQuantic.Core.Api eQuantic.Core.Api - 1.1.0.0 - 1.1.0.0 - 1.1.0.0 - net7.0 + 1.1.1.0 + 1.1.1.0 + 1.1.1.0 + net7.0;net8.0 eQuantic.Core.Api eQuantic;Core;API;Library diff --git a/src/eQuantic.Core.Application.Crud/eQuantic.Core.Application.Crud.csproj b/src/eQuantic.Core.Application.Crud/eQuantic.Core.Application.Crud.csproj index 03ae7bc..5b84caf 100644 --- a/src/eQuantic.Core.Application.Crud/eQuantic.Core.Application.Crud.csproj +++ b/src/eQuantic.Core.Application.Crud/eQuantic.Core.Application.Crud.csproj @@ -6,10 +6,10 @@ eQuantic Systems eQuantic.Core.Application.Crud eQuantic.Core.Application.Crud - 1.1.0.0 - 1.1.0.0 - 1.1.0.0 - netstandard2.1;net7.0 + 1.1.1.0 + 1.1.1.0 + 1.1.1.0 + netstandard2.1;net7.0;net8.0 eQuantic.Core.Application.Crud eQuantic;Core;Application;CRUD;Library diff --git a/src/eQuantic.Core.Application/eQuantic.Core.Application.csproj b/src/eQuantic.Core.Application/eQuantic.Core.Application.csproj index 04ff377..c359a4a 100644 --- a/src/eQuantic.Core.Application/eQuantic.Core.Application.csproj +++ b/src/eQuantic.Core.Application/eQuantic.Core.Application.csproj @@ -6,10 +6,10 @@ eQuantic Systems eQuantic.Core.Application eQuantic.Core.Application - 1.1.0.0 - 1.1.0.0 - 1.1.0.0 - netstandard2.1;net7.0 + 1.1.1.0 + 1.1.1.0 + 1.1.1.0 + netstandard2.1;net7.0;net8.0 eQuantic.Core.Application eQuantic;Core;Application;Library @@ -46,6 +46,10 @@ + + + +