Entity SQL provides an alternative method for querying an EDM if you’re working in a language that doesn’t support LINQ or simply prefer to use syntax that’s closer to SQL. It’s only available on the ObjectContext
, and conceptually it sits somewhere between LINQ, SQL and classic ADO.NET.
Make A Note
There is one other way of querying an EDM: QueryBuilder
methods. We won’t be looking at those here, but if you’re interested, you can check out MSDN. They work very much like LINQ method syntax, but they are far more limited.