Is it possible to come up with a method that will return true if the IQuerybale object passed in is from an in-memory source and false if not?
So far I've come up with:
typeof(EnumerableQuery).IsAssignableFrom(obj.GetType()) ||
typeof(Array).IsAssignableFrom(obj.GetType())
This is obviously very brittle and while it might work in my test case, I'd like something more resilient ideally.