LINQ 式のヘルプが必要です。2 つのテーブルがArticle
あり、comments
外部キーはArticle_id
.今、linq to sql を使用して両方のテーブルを使用するデータが必要ですarticle_id,Article_title,Total_Comments
(現在の記事の記事へのコメントの数),
物語の構造 :
table 1(Article) : Article_ID,Article_Title.. etc
table 2(comments ): Comment_auto_id,Comment_text,Comment_by(User_ID),Article_ID