Material.cs 596 B

123456789101112131415161718192021222324
  1. using Newtonsoft.Json;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. namespace AmrControl.DB.Models
  5. {
  6. /// <summary>
  7. /// 物料的数据库模型
  8. /// </summary>
  9. [Table("materials")]
  10. public class Material
  11. {
  12. [JsonIgnore]
  13. [Key]
  14. public long ID { get; set; }
  15. public string locationID { get; set; }
  16. public string materialID { get; set; }
  17. public string materialType { get; set; }
  18. public int quantity { get; set; }
  19. public string jsonPars { get; set; }
  20. }
  21. }