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

namespace DAL.Models.Entities
{
    public partial class EmployeeToDepartment : BaseEntity
    {
        public int EmployeeToDepartmentId { get; set; }
        public int EmployeeId { get; set; }

        public int DepartmentId { get; set; }

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

        public decimal EmployeeBudget { get; set; }
        public int? EmployeeStatusId { get; set; }
        public int? RangId { get; set; }

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

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

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