using AutoMapper;
using Microsoft.EntityFrameworkCore.Migrations.Operations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AipGateway.API.Domain.Entities
{
    public partial class LinkedDecryptKeyDto
    {
        public int Id { get; set; }
        public int ServerId { get; set; }

        public string DecryptKey { get; set; }

        public DateTime ExpiredAt { get; set; }
        public DateTime CreatedAt { get; set; }
        public bool UseYn { get; set; }

        public DateTime? DeletedAt { get; set; }

         public void Mapping(Profile profile)
        {
            profile.CreateMap<LinkedDecryptKeyDto, TbLinkedDecryptKey>();
            profile.CreateMap<TbLinkedDecryptKey, LinkedDecryptKeyDto>();
        }

        public override string ToString()
        {
            return "LinkedDecryptKeyDto{ Id: " + Id + ", ServerId: " + ServerId + ", DecryptKey: " + DecryptKey + ", ExpiredAt: " + ExpiredAt + ", CreatedAt: " + CreatedAt + "}";
        }
    }
}
