linq to sql select where id in list code example Example: linq where id in list var result = _dataContext.table.Where(x => idList.Contains(x.Id));