TDEV_DevicePartItem.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System.Linq;
  2. using System.Text;
  3. using System.Threading.Tasks;
  4. using System.ComponentModel.DataAnnotations;
  5. using System;
  6. namespace Ropin.Inspection.Model.Entities
  7. {
  8. public class TDEV_DevicePartItem
  9. {
  10. [Key]
  11. [MaxLength(50)]
  12. public string C_ID { get; set; }
  13. [MaxLength(100)]
  14. [Required]
  15. public string C_Name { get; set; }
  16. [MaxLength(50)]
  17. [Required]
  18. public string C_DevicePartCode { get; set; }
  19. [MaxLength(255)]
  20. public string C_Url { get; set; }
  21. [Display(Name = "备注")]
  22. [MaxLength(1024)]
  23. public string C_Remark { get; set; }
  24. [Display(Name = "创建人")]
  25. [Required]
  26. public Guid C_CreateBy { get; set; }
  27. [Display(Name = "创建时间")]
  28. [Required]
  29. public DateTime D_CreateOn { get; set; }
  30. [Display(Name = "更新者")]
  31. public Guid? C_LastUpdatedBy { get; set; }
  32. [Display(Name = "更新时间")]
  33. public DateTime? D_LastUpdatedOn { get; set; }
  34. [Display(Name = "状态")]
  35. [Required]
  36. [MaxLength(1)]
  37. public char C_Status { get; set; } = '1';
  38. }
  39. }