boutique replica bags up ideas

the best replique rolex and prices here.

julia highlight 99j hair color 10a quality straight human hair lace front wigs 8 - 24 inches pre plucked hairline 13x4 inches lace front brazilian wig onlinefor sale

Implement WHERE IN clause in LINQ to Entities

Updated on     Kisan Patel

Problem:

How to write “WHERE IN” style queries using LINQ to Entities?

Solution:

In the LINQ (to objects) world there is no ‘WHERE IN’ so you need to use the Contains method like this:

List<int> model = new List<int>() {4, 5, 6, 9, 10};
var users = context.Users.Where(x => model.Contains(x.Id)).ToList();

LINQ

Leave a Reply