ASP.NET / ASP.NET E-commerce Website Using Vue / DAL / DomainClasses / Product.cs
Product.cs
Raw
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace Casestudy.DAL.DomainClasses
{
    public class Product
    {
        [Required]
        public string? Id { get; set; }
        [ForeignKey("BrandId")]
        public Brand? Brand { get; set; }
        [Required]
        public int BrandId { get; set; }
        [Required]
        public string? ProductName { get; set; }
        [Required]
        public string? GraphicName { get; set; }
        [Column(TypeName = "money"), Required]
        public decimal CostPrice { get; set; }
        [Column(TypeName = "money"), Required]
        public decimal MSRP { get; set; }
        [Required]
        public int QtyOnHand { get; set; }
        [Required]
        public int QtyOnBackOrder { get; set; }
        [StringLength(2000)]
        public string? Description { get; set; }

    }
}