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

namespace DAL.Models.Entities
{
    public partial class WindreamIndexToWindreamSearchToDepartment : BaseEntity
    {
        public int WindreamIndexToWindreamSearchToDepartmentId { get; set; }
        public int WindreamSearchToDepartmentId { get; set; }
        public int WindreamIndexId { get; set; }
        public int Seq { get; set; }

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

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

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

        //generic ToString()
        public override string ToString() => $"WindreamIndexToWindreamSearchToDepartmentId: {GetEntityId()}; WindreamSearchToDepartmentId: {WindreamSearchToDepartmentId}; AttributeSzColumnName: {AttributeSzColumnName}";

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