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
|
How can I find/iterate changed objects in a UoW (context)? The EF equivalent of mycontext.myentity.Local. |
|
|
|
|
|
Many thanks. Is there a way to write a query that will return either the object found in the 1st level cache, and if not, from the database? That is a query other than by primary key? |
|
|
No, you would need to do this in two stages, first checking the UOW (using LINQ to Objects), then checking the database (using LINQ to LightSpeed or LightSpeed query objects). Unfortunately the way the C# compiler compiles LINQ queries makes it tricky to combine these two into a single query, especially in an efficient way. |
|