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