TbAipServer.cs 880 B

123456789101112131415161718192021222324252627282930
  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_SERVER")]
  12. public class TbAipServer
  13. {
  14. [Key]
  15. public required int AipServerId { get; set; }
  16. [StringLength(255)]
  17. public required string AipServerName { get; set; }
  18. public string? IpAddr { get; set; }
  19. public int? Port { get; set; }
  20. public required DateTime CreatedAt { get; set; }
  21. public override string ToString()
  22. {
  23. return "TbAipServer{ AipServerId: " + AipServerId + ", AipServerName: " + AipServerName + ", IpAddr: " + IpAddr + ", Port: " + Port + ", CreatedAt: " + CreatedAt + "}";
  24. }
  25. }
  26. }