All of my tests pass now, but I'm still hitting a few issues for 3.1 that the tests didn't reveal.
In previous versions (not sure when it changed), there existed the ability to intercept prefetch queries using DataContextDelegate.willPerformQuery() or willPerformGenericQuery(). Those queries are no longer available -- only the original query with the prefetchTree goes through those methods. It's the end of the day here, so I haven't traced through the code yet to see what's going on, but I still need a way to filter all query types for specific entities to filter out certain entities (appending "where INVALIDATED = 'N'"). I've got this working for select queries, relationship queries, objectIdQueries, but not prefetch queries. And I'm still wondering what the difference between willPerformGenericQuery and willPerformQuery might be. So far, I just forward willPerformGenericQuery requests through my willPerformQuery code.
