Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 21. Manipulating Entities with O... > Building Dynamic Queries and Reading...

21.4. Building Dynamic Queries and Reading Results

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial