TbAipConfig.cs 871 B

123456789101112131415161718192021222324252627282930313233
  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.Data.Entities
  10. {
  11. [Table("TB_AIP_CONFIG")]
  12. public class TbAipConfig
  13. {
  14. [Key]
  15. public required int Id { get; set; }
  16. public required int AipServerId { get; set; }
  17. [StringLength(1023)]
  18. public required string ConfigKey { get; set; }
  19. public required string ConfigValue { get; set; }
  20. public required DateTime CreatedAt { get; set; }
  21. public override string ToString()
  22. {
  23. return "TbAipConfig{ Id: " + Id + ", AipServerId: " + AipServerId + ", ConfigKey: " + ConfigKey + ", CreatedAt: " + CreatedAt + "}";
  24. }
  25. }
  26. }