linq get list of objects from list of ids code example
Example: how to query items with any id in a list of ids linq c#
var userProfiles = _dataContext.UserProfile
.Where(t => idList.Contains(t.Id));
var userProfiles = _dataContext.UserProfile
.Where(t => idList.Contains(t.Id));