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

namespace DAL.Models.Entities
{
    public partial class WindreamSearchItem : BaseEntity
    {
        public int WindreamSearchItemId { get; set; }
        public string Name { get; set; }
        public string Comment { get; set; }
        public int ClientId { get; set; }
        public string Caption { get; set; }
        public string PlaceHolder { get; set; }

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

        public string ConnectedList { get; set; }
        public string AlternativeWindreamSearchItemIdList { get; set; }

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

        //generic ToString()
        public override string ToString() => $"WindreamSearchItemId: {GetEntityId()}; Name: {Name}";

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