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.
This commit is contained in:
Loretta 2026-01-15 11:33:51 +01:00
parent 7bcd601035
commit 954b99fcbc
1 changed files with 1 additions and 0 deletions

View File

@ -299,6 +299,7 @@ public partial class Order : BaseEntity, ISoftDeletedEntity
/// <summary>
/// Gets or sets the order status
/// </summary>
[ToonDescription(Purpose = "Enum wrapper", BusinessRule = "get, set => OrderStatusId")]
public OrderStatus OrderStatus
{
get => (OrderStatus)OrderStatusId;