public int ArticleID { get; set; }
[DisplayName("标题")]
public string Title { get; set; }
[DisplayName("简介")]
public string Introduction { get; set; }
[DisplayName("标题图片")]
public string IntroImage { get; set; }
public bool Headline { get; set; }
public bool Recommend { get; set; }public virtual ICollection<Comment> Comments { get; set; }
当加入 public virtual ICollection<Comment> Comments { get; set; } 时 JSON便不能正确生成去除后就正常,求解
求助那我应该怎么做呢,Article 对于 Comment 表来说是一对多,所以我写成了 virtual ICollection当用Json方法转化为Json时就会报错