We have a blog post that shows an example of this ....
EntitySpaces and LINQ - An Introduction - Part 1