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:
parent
7bcd601035
commit
954b99fcbc
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue