0
如何將下列SQL
語句轉換爲linQ
?將sql語句轉換爲linq MVC
select * from student where student_id in (4 , 10 , 20 , 50)
我試過以下,但它不工作:
var SelectedStudent = db.Students
.Include(i => i.grade)
.Where(i => i.studentID in (1,2,3))
.ToList();