Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
SQLで私はクエリを持っています
select * from table where id in (5,7,8)
LINQクエリでこれをどのように行いますか?
var t = from u in table where new[] { 5, 7, 8 }.Contains(u.id) select u
var ids = new int[] { 5, 7, 8 }; var rows = from row in table where ids.Contains(row.id) select row