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 LinkedServerDto
    {
        public int ServerId { get; set; }
        public int SystemId { get; set; }

        public string ServerIpAddr { get; set; }

        public string ServerDesc { get; set; }
        public DateTime CreatedAt { get; set; }
        public bool UseYn { get; set; }

        public DateTime? DeletedAt { get; set; }

        public void Mapping(Profile profile)
        {
            profile.CreateMap<LinkedServerDto, TbLinkedServer>();
            profile.CreateMap<TbLinkedServer, LinkedServerDto>();
        }

        public override string ToString()
        {
            return "LinkedServerDto{ ServerId: " + ServerId + ", SystemId: " + SystemId + ", ServerIpAddr: " + ServerIpAddr + ", ServerDesc: " + ServerDesc + ", CreatedAt: " + CreatedAt + "}";
        }
    }
}
