From 82a1815a89c9f3a167fe83338cde3c9041f994c9 Mon Sep 17 00:00:00 2001 From: Charles d'Avernas Date: Mon, 2 Sep 2024 13:35:37 +0200 Subject: [PATCH] fix(ResourceOrientedAbstractions): Fixed the ResourceMetadata to return the qualified name of the resource (i.e. name.ns) instead of a custom format (i.e. ns.name) --- .../ResourceMetadata.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions/ResourceMetadata.cs b/src/Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions/ResourceMetadata.cs index ac34a67e..174e714d 100644 --- a/src/Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions/ResourceMetadata.cs +++ b/src/Neuroglia.Data.Infrastructure.ResourceOriented.Abstractions/ResourceMetadata.cs @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Humanizer.Localisation; + namespace Neuroglia.Data.Infrastructure.ResourceOriented; /// @@ -92,6 +94,6 @@ public ResourceMetadata(string name, string? @namespace = null, IDictionary? ExtensionData { get; set; } /// - public override string? ToString() => string.IsNullOrWhiteSpace(this.Name) ? base.ToString() : string.IsNullOrWhiteSpace(this.Namespace) ? this.Name : $"{this.Namespace}.{this.Name}"; + public override string? ToString() => string.IsNullOrWhiteSpace(this.Namespace) ? this.Name : $"{this.Name}.{this.Namespace}"; }