0
進出口另一個類創建一個博客,我儘量的評論列表,「連接」到每個博客,帖子:對象的列表添加到與實體框架
public class BlogPost
{
public int BlogPostId { get; set; }
public string Post { get; set; }
}
評論類:
public class Comment
{
public int CommentId { get; set; }
public string Comment { get; set; }
}
如何在我的BlogPost-class中指定我希望它能夠擁有對它的評論列表?
非常感謝你! – Wranglerino 2014-10-29 13:12:20