using System.Collections.Generic;
using FreeSql;
using FreeSql.DataAnnotations;
using Renci.SshNet.Messages.Transport;

namespace JXCMS.CMS.Movie.Entity
{
    public class ClassifyEntity : BaseEntity<ClassifyEntity, int>
    {
        public string Name { get; set; }

        public string Alias { get; set; }

        public int ParentId { get; set; }
        
        [Navigate("ParentId")]
        public ClassifyEntity Parent { get; set; }

        public ICollection<ClassifyEntity> Childs { get; set; }

        [Column(IsIgnore = true)]
        public long Count { get; set; }
        
    }
}