public class Category
{
public int Id { get; set; }
public Thread Thread { get; set; } = null!;
public Guid ThreadId { get; set; }
public int Sorting { get; set; } = 0;
public string Name { get; set; } = string.Empty;
public ICollection<CategoryDetail> Details { get; set; } = null!;
public ICollection<Category> Subcategories { get; set; } = new List<Category>();
public int? CategoryId { get; set; }
}
public class Category
{
public int Id { get; set; }
public Thread Thread { get; set; } = null!;
public Guid ThreadId { get; set; }
public int Sorting { get; set; } = 0;
public string Name { get; set; } = string.Empty;
public ICollection<CategoryDetail> Details { get; set; } = null!;
public ICollection<Category> Subcategories { get; set; } = new List<Category>();
public int? CategoryId { get; set; }
}