ProductWithMes.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. using Prism.Mvvm;
  2. using SqlSugar;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace TeamAAS_VP.Models
  9. {
  10. [SugarTable("ProductWithMes")]
  11. public class ProductWithMes : BindableBase
  12. {
  13. //[SugarColumn(IsPrimaryKey = true)]
  14. //public Guid Id { get; set; } = Guid.NewGuid();
  15. private string _ProductName;
  16. [SugarColumn(IsPrimaryKey = true)]
  17. /// <summary>
  18. /// 产品名称
  19. /// </summary>
  20. public string ProductName
  21. {
  22. get { return _ProductName; }
  23. set { SetProperty(ref _ProductName, value); }
  24. }
  25. private string _ProductCode;
  26. /// <summary>
  27. /// 产品编码
  28. /// </summary>
  29. public string ProductCode
  30. {
  31. get { return _ProductCode; }
  32. set { SetProperty(ref _ProductCode, value); }
  33. }
  34. private string _ProductColor = "";
  35. /// <summary>
  36. /// 产品颜色
  37. /// </summary>
  38. public string ProductColor
  39. {
  40. get { return _ProductColor; }
  41. set { SetProperty(ref _ProductColor, value); }
  42. }
  43. }
  44. }