This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I got a situation where I need to get a list of objects based on an Id collection using UnitOfWork, so my code looks like this:
This code works and gives me Customers with Id 1, 3, 4, 6. My question is: is that the right way to get objects like that using Contains or is there a more efficient way to achieve the same goal? Thanks a lot. Xiaosu |
|
|
Yep - using Contains() is the right approach to handle this type of query.
|
|