📜  查询关联表 ef6 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.434000             🧑  作者: Mango

代码示例1
var cat_id=1; // Change this variable for your real cat_id

var query= from article in db.Articles
           where article.Categories.Any(c=>c.Category_ID==cat_id)
           select article;