TbAipProtection.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Azure;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace AipGateway.API.Domain.Entities
  10. {
  11. [Table("TB_AIP_PROTECTION")]
  12. public class TbAipProtection
  13. {
  14. [Key]
  15. [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
  16. public int ProtectionId { get; set; }
  17. [StringLength(255)]
  18. public string ProtectionGuid { get; set; } = string.Empty;
  19. [StringLength(255)]
  20. public string ProtectionName { get; set; } = string.Empty;
  21. [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
  22. public DateTime CreatedAt { get; set; } = DateTime.Now;
  23. public bool UseYn { get; set; }
  24. [StringLength(512)]
  25. public string? ProtectionDesc { get; set; }
  26. public DateTime? DeletedAt { get; set; }
  27. public override string ToString()
  28. {
  29. return "TbAipProtection{ ProtectionId: " + ProtectionId + ", ProtectionGuid: " + ProtectionGuid + ", ProtectionName: " + ProtectionName + ", CreatedAt: " + CreatedAt + "}";
  30. }
  31. }
  32. }