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
|
I use methods: Access for entities saved in DB: UnitOfWork.Query<>() Access for entities not saved in DB: UnitOfWork.OfType<>() Problem with UnitOfWork.OfType<>() is that it iterates all entities in UOW each time. Is it possible to get not saved entities in more efficient way? InstalSoft |
|
|
No, but the enumerable on UnitOfWork is just an in-memory collection which you are operating over. We dont have any pre-sorted type specific buckets to surface so doing the filtering via OfType<> is pretty much as efficient as you will get :)
|
|
|
Thank you for help |
|