3
I need to make a relationship in one of the entities, as I do to reference the entity itself for both child records and parent record
public class Comentario
{
public int IdComentario { get; set; }
public int? IdComentarioPai { get; set; }
public string Texto { get; set; }
public DateTime Data { get; set; }
public ICollection<Comentario> Respostas { get; set; }
public Comentario ComentarioPai { get; set; }
}
It worked perfectly, thank you.
– Caputo