LinkedSystemDto.cs 1.1 KB

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