Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieving from database as per ids in the list

 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a list that contains some numbers, say id. And i want to retrieve all the rows, that too, of two tables with id based on the list. I dont want to use native sql, as, i will have to iterate through the list and run a sql each time. Is there any other way out?
 
Kunal Lakhani
Ranch Hand
Posts: 622
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved, in Restrctions. class there is a in method which takes 2 args, string property and the collection.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic