EquipmentMonitor.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. namespace IMCS.CCS.Entitys
  8. {
  9. [Table("ccs_equipment_monitor")]
  10. public class EquipmentMonitor
  11. {
  12. [Key]
  13. [Column("id")]
  14. [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
  15. public long Id { get; set; }
  16. /// <summary>
  17. /// ip
  18. /// </summary>
  19. [Column("ip")]
  20. [MaxLength(64)]
  21. public string IP { get; set; }
  22. [Column("name")]
  23. [MaxLength(64)]
  24. public string Name { get; set; }
  25. [Column("serial_no")]
  26. [MaxLength(64)]
  27. public string SerialNo { get; set; }
  28. [Column("type")]
  29. public string Type { get; set; }
  30. [Column("description")]
  31. public string Description { get; set; }
  32. [Column("address")]
  33. public string Address { get; set; }
  34. [Column("address2")]
  35. public string Address2 { get; set; }
  36. [Column("source")]
  37. public string Source { get; set; }
  38. [Column("status")]
  39. public string Status { get; set; }
  40. [Column("line")]
  41. public string Line { get; set; }
  42. [Column("location")]
  43. public string Location { get; set; }
  44. [Column("control_status")]
  45. public string ControlStatus { get; set; }
  46. }
  47. }