Given the following model, the command "scaffold controller Subject" will crash visual studio, presumably due to a stack overflow. Removing the ParentId and Parent properties resolves the issue.
public class Subject
{
public int SubjectId { get; set; }
[Required]
public string Name { get; set; }
public int ParentId { get; set; }
public virtual Subject Parent { get; set; }
}
I am using MvcScaffolding v 1.0.6