using HRD.WebApi.DAL;
using System.ComponentModel.DataAnnotations.Schema;

namespace DAL.Models.Entities
{
    public partial class WebAppToDepartment : BaseEntity
    {
        public int WebAppToDepartmentId { get; set; }
        public int EmployeeToWebAppId { get; set; }
        public int DepartmentId { get; set; }

        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]
        public string DepartmentName { get; set; }

        //generic Id
        public override int GetEntityId() => WebAppToDepartmentId;

        //generic ToString()
        public override string ToString() => $"WebAppToDepartmentId: {GetEntityId()}; EmployeeToWebAppId: {EmployeeToWebAppId}; DepartmentId: {DepartmentId}";

        //generic EntityInfo()
        public override string EntityInfo() => base.EntityInfo();
    }
}