using HRD.WebApi.DAL;

namespace DAL.Models.Entities
{
    public partial class Subsidiary : BaseEntity
    {
        public int SubsidiaryId { get; set; }
        public int? ClientId { get; set; }
        public string Name { get; set; }
        public string SubsidiaryCode { get; set; }
        public string Comment { get; set; }

        //        [NotMapped]
        //        [DatabaseGenerated(DatabaseGeneratedOption.Computed)]

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

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

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