Linq Compare to a list

Establish your list

var idList = new [] {5, 7};

Compare against the List

var jobs = originaljobs.Where(t => t.StatusId != null).Where(t => idList.Contains((int)t.StatusId)); 

Comments

Popular posts from this blog

Grouping with Data Entities

Linq - Data Entities - Records by Max Date with CASE

Linq Remove from list based on other table