Skip to content

Commit

Permalink
fix(ResourceOrientedAbstractions): Fixed the ResourceMetadata to retu…
Browse files Browse the repository at this point in the history
…rn the qualified name of the resource (i.e. name.ns) instead of a custom format (i.e. ns.name)
  • Loading branch information
cdavernas committed Sep 2, 2024
1 parent 08b022f commit 82a1815
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>
Expand Down Expand Up @@ -92,6 +94,6 @@ public ResourceMetadata(string name, string? @namespace = null, IDictionary<stri
public IDictionary<string, object>? ExtensionData { get; set; }

/// <inheritdoc/>
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}";

}

0 comments on commit 82a1815

Please sign in to comment.