ProductWithMes.cs 1.2 KB

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