Defining Self Referencing Foreign-Key-Relationship Using Entity Framework 7 Code First
问题 I have an ArticleComment entity as you can see below: public class ArticleComment { public int ArticleCommentId { get; set; } public int? ArticleCommentParentId { get; set; } //[ForeignKey("ArticleCommentParentId")] public virtual ArticleComment Comment { get; set; } public DateTime ArticleDateCreated { get; set; } public string ArticleCommentName { get; set; } public string ArticleCommentEmail { get; set; } public string ArticleCommentWebSite { get; set; } public string AricleCommentBody {