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
|
Hello, I have the following scenario: - Long running UnitOfWork - Search for an existing entity. If it exists, take it for working. Else create a new entity and add it to the uow. At the end of the session, finally save the changes. My problem: I also have to include entities that were registered as pending insert or delete in my search. But this does not work using the standard query methods. Any idea how this could be achieved? best regards from switzerland! Hartmut |
|
|
The UnitOfWork instance itself is enumerable (and queryable) and will allow you to enumerate over all entities in the identity map so you can intersect this against the results you get back from a standard query.
|
|