I have created a simple table named "Category". Each category could have one or more subcategories or they could have no category.
I can't do it using EF core Code-First in ASP.NET 5. Would you mind help me to complete this table?
public int Id {get;set;}
public string Title {get;set;}
public int? parentId {get;set;}
How to set the relationship?