public class Category : CategoryCore
{
public string Name { get; set; }
public Status Status { get; set; }
public virtual ICollection<Product> Products { get; set; }
}
public class CategoryCore : BaseEntity<int>
{
public string Name { get; set; }
public Status Status { get; set; }
}
public enum Status
{
draft, root, leaf, branch
}