Product-enhancements-and-validation-fixes
This commit is contained in:
@@ -13,7 +13,6 @@ public class Product
|
||||
[StringLength(200)]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
[Required]
|
||||
public string Description { get; set; } = string.Empty;
|
||||
|
||||
[Column(TypeName = "decimal(18,2)")]
|
||||
@@ -24,6 +23,8 @@ public class Product
|
||||
|
||||
public ProductWeightUnit WeightUnit { get; set; } = ProductWeightUnit.Kilogram;
|
||||
|
||||
public int StockQuantity { get; set; } = 0;
|
||||
|
||||
public Guid CategoryId { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
Reference in New Issue
Block a user