first get the multiple id of table of which you want to get the value after that you can use this query
Code Snippet
- List<int> result = new List<int>();
- result.Add(1);
- result.Add(5);
- result.Add(7);
- result.Add(8);
- using (var db = new model())
- {
- var emp = (from mp in db.emp where result.Contains(mp.id) select mp).ToList();
- }
1535ff48-0b67-498c-8da0-6aa00764034a|0|.0
Categories:
ASP.NET
15. January 2012
Tags:
Linq, Entity