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 3. Querying Entity Data Models > Entity SQL Queries That Return Objects

3.4. Entity SQL Queries That Return Objects

A LINQ to Entities query implicitly creates an ObjectQuery, whether written in Visual Basic or C#. There is one other way to create an ObjectQuery and that is by using the Entity Framework’s Object Services (in the System.Data.Objects namespace) directly. When you create an ObjectQuery directly, you will use the Entity Framework’s T-SQL-like query language, called Entity SQL, to build the query expression.

To see how this works, modify your example with the following steps:


  

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