Friday, May 24, 2013
Cool Stuff: Use array to query values using Linq to Sql
You can use an array to query for records using linq to sql...
int
[] myList =
new
int
[] { 2625, 2666 };
var
myResult =
from
st
in
db.SomeTable
where
myList.Contains(st.ID)
select
st;
Might be useful sometimes?
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment