Check out example codes for "how to query items with any id in a list of ids linq c#". It will help you in understanding the concepts better.

Code Example 1

var result = _dataContext.table.Where(x => idList.Contains(x.Id));

Code Example 2

var userProfiles = _dataContext.UserProfile
                               .Where(t => idList.Contains(t.Id));

Learn ReactJs, React Native from akashmittal.com