YW_DeviceProduct.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. using Ant.Core.SqlServer.BaseEntities;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Web;
  7. namespace Central.Control.WebApi.DbEntity
  8. {
  9. /// <summary>
  10. /// YW_DeviceProduct设备售卖商品
  11. /// </summary>
  12. public class YW_DeviceProduct : SoftBaseEntity
  13. {
  14. /// <summary>
  15. /// 主键ID
  16. /// </summary>
  17. [Key]
  18. [MaxLength(50)]
  19. public string Id { set; get; } = string.Empty;
  20. /// <summary>
  21. /// 设备id
  22. /// </summary>
  23. [MaxLength(50)]
  24. [Required(AllowEmptyStrings = true)]
  25. public string DeviceId { set; get; } = string.Empty;
  26. /// <summary>
  27. /// 商品id
  28. /// </summary>
  29. [MaxLength(50)]
  30. [Required(AllowEmptyStrings = true)]
  31. public string ProductId { set; get; } = string.Empty;
  32. /// <summary>
  33. /// 售卖价
  34. /// </summary>
  35. public decimal Price { set; get; }
  36. /// <summary>
  37. /// 库存
  38. /// </summary>
  39. public int Stock { set; get; }
  40. }
  41. }