J
jpuopolo
All,
I have an array of objects, where each object holds an ID (int) and a
name (string).
I have a database table T, each row of which holds an ID (int) and a
name (string).
I want to write a LINQ query that pulls out all of the items in the
database that have corresponding IDs in the objects of the array. For
example, if the array's objects contain the IDs 1,2,3,4,5 and the DB
contains rows with IDs 4,5,6,7, I would want the records 4,5 from the
database.
Is there a simple LINQ-esque way to do this?
Many thanks,
jpuopolo
I have an array of objects, where each object holds an ID (int) and a
name (string).
I have a database table T, each row of which holds an ID (int) and a
name (string).
I want to write a LINQ query that pulls out all of the items in the
database that have corresponding IDs in the objects of the array. For
example, if the array's objects contain the IDs 1,2,3,4,5 and the DB
contains rows with IDs 4,5,6,7, I would want the records 4,5 from the
database.
Is there a simple LINQ-esque way to do this?
Many thanks,
jpuopolo