Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Now that you have had a good look at the ObjectStateManager and the MetadataWorkspace, you might be interested in what types of problems you can solve with these tools.
The following example will show you how to build queries dynamically, first using the metadata and then using Entity Framework 4’s new CreateObjectSet method. While the latter method is much simpler, you’ll see that the metadata scenario will give you the flexibility to build more complex queries.