Querying with LINQ to Entities vs ObjectQuery in EF
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 05 Aug 2008 |
View original | Bookmarked: 0 time(s)
I am copying (and slightly modifying so that it is not out of context) a forum post
that I wrote to put here in my blog. Here's
the original thread if you are interested.
When working with object services, you can query data using LINQ to Entities
or ObjectQueries with Entity SQL.
Unless you specifically use LINQ syntax in your EF query, it will be an ObjectQuery.
An example.
context.Customers is an ObjectQuery. The same as context.CreateQuery("SELECT
c FROM myentitycontainer.Customers as c")...