LinkedDecryptKeyDto.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using AutoMapper;
  2. using Microsoft.EntityFrameworkCore.Migrations.Operations;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace AipGateway.API.Domain.Entities
  11. {
  12. public partial class LinkedDecryptKeyDto
  13. {
  14. public int Id { get; set; }
  15. public int ServerId { get; set; }
  16. public string DecryptKey { get; set; }
  17. public DateTime ExpiredAt { get; set; }
  18. public DateTime CreatedAt { get; set; }
  19. public bool UseYn { get; set; }
  20. public DateTime? DeletedAt { get; set; }
  21. public void Mapping(Profile profile)
  22. {
  23. profile.CreateMap<LinkedDecryptKeyDto, TbLinkedDecryptKey>();
  24. profile.CreateMap<TbLinkedDecryptKey, LinkedDecryptKeyDto>();
  25. }
  26. public override string ToString()
  27. {
  28. return "LinkedDecryptKeyDto{ Id: " + Id + ", ServerId: " + ServerId + ", DecryptKey: " + DecryptKey + ", ExpiredAt: " + ExpiredAt + ", CreatedAt: " + CreatedAt + "}";
  29. }
  30. }
  31. }