Product.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // ======================================
  2. // Author: Ebenezer Monney
  3. // Email: info@ebenmonney.com
  4. // Copyright (c) 2017 www.ebenmonney.com
  5. //
  6. // ==> Gun4Hire: contact@ebenmonney.com
  7. // ======================================
  8. using System;
  9. using System.Collections.Generic;
  10. using System.ComponentModel.DataAnnotations.Schema;
  11. using System.Linq;
  12. using System.Text;
  13. using System.Threading.Tasks;
  14. namespace DAL.Models
  15. {
  16. public class Product
  17. {
  18. public int Id { get; set; }
  19. public string Name { get; set; }
  20. public string Description { get; set; }
  21. public string Icon { get; set; }
  22. public decimal BuyingPrice { get; set; }
  23. public decimal SellingPrice { get; set; }
  24. public int UnitsInStock { get; set; }
  25. public bool IsActive { get; set; }
  26. public bool IsDiscontinued { get; set; }
  27. public DateTime DateCreated { get; set; }
  28. public DateTime DateModified { get; set; }
  29. public int? ParentId { get; set; }
  30. public Product Parent { get; set; }
  31. public int ProductCategoryId { get; set; }
  32. public ProductCategory ProductCategory { get; set; }
  33. public ICollection<Product> Children { get; set; }
  34. public ICollection<OrderDetail> OrderDetails { get; set; }
  35. }
  36. }