From 954b99fcbc47aaf02903c96332d730cf9151feff Mon Sep 17 00:00:00 2001 From: Loretta Date: Thu, 15 Jan 2026 11:33:51 +0100 Subject: [PATCH] Add OrderStatus enum property to Order class Introduced the OrderStatus property as an enum wrapper for OrderStatusId in the Order class. This enhances type safety and code readability by allowing direct use of the OrderStatus enum. The property is annotated with ToonDescription to clarify its purpose and business rule. --- Mango.Nop.Core/NopDependencies/Catalogs/Order.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs b/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs index d076057..713b9ad 100644 --- a/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs +++ b/Mango.Nop.Core/NopDependencies/Catalogs/Order.cs @@ -299,6 +299,7 @@ public partial class Order : BaseEntity, ISoftDeletedEntity /// /// Gets or sets the order status /// + [ToonDescription(Purpose = "Enum wrapper", BusinessRule = "get, set => OrderStatusId")] public OrderStatus OrderStatus { get => (OrderStatus)OrderStatusId;