score:1
Accepted answer
In order to use ESQL with DbContext, you will have to "drop down" to ObjectContext.
var objectContext = ((IObjectContextAdapter)context).ObjectContext;
var query = objectContext.CreateQuery<MyEntity>(
WhereClause.ToString(),
Params.ToArray());
Source: stackoverflow.com
Related Articles
- Entity Framework upgrade to 6.2.0 from 6.1.x breaks certain queries unless I enable MARS
- Entity Framework 5 upgrade from 4
- IQueryable two tables from Code First Entity Framework
- Entity Framework dynamic linq where from generic source with dynamic where clause
- Map extra column from stored procedure to Entity Framework code first model
- Entity Framework recursively include collection for each entity from included collection
- Which LINQ statements force Entity Framework to return from the DB?
- Entity Framework 6 Code First Custom Functions
- Entity Framework retrieve data from table with foreign key
- Joining tables from two databases using entity framework
- How can I extract a list of Tuple from a specific table with Entity Framework / LINQ?
- Get All Except from SQL database using Entity Framework
- Compare only time from datetime in entity framework 6 with odp.net Oracle 12c
- Picking random record from Entity Framework database without OrderBy
- Migration from NHibernate to Entity Framework 4.1?
- Avoiding repeated projection code in Entity Framework
- How to prevent Entity Framework from loading all child objects
- Forcing Entity Framework to not generate NCLOB's when building Linq-to-Sql Code (Model First)
- Entity Framework Code First without app.config
- Query Xml from SQL using Entity Framework Database First
- Efficient joining the most recent record from another table in Entity Framework Core
- Data Access from Entity framework works during debugging but not on live
- Select data from multiple unrelated tables with LINQ to Entity Framework
- How to create a LINQ expression from an Entity Framework navigation property?
- How to bind data from mutiple tables to datagridview using Entity Framework and use CRUD operations?
- Entity framework 5.0 First or Group By Issue- After upgrading from 2.2 to 5.0
- Entity Framework Code First using context in Controller
- Improve query generated from entity framework
- many to many mapping in entity framework code first
- update list from another list - entity framework
- About data transfer one object to array through LINQ
- How to write a Lambda Expression to select distinct words from list of sentences
- linq null reference error with orderby but firstordefault works
- How to Convert sql server query to linq in entity framework
- C# Silverlight WCF Linq Service Select from MSQL Database
- Search list and order List by value max found c#
- How to Concat String in LINQ SQL WHERE clause?
- Split a list of linq strings backwards for a search model
- Is there a way to compare multiple values in a linq expression to a generic list?
- Use Session state within pLinq queries
- Convert XML to object
- Custom SQL in Entity Framework, results are objects of null
- Converting a list of dictionaries to models
- Linq to DataSet
- Error while doing a lexicographical sort of a word
- Two methods that differ only in LINQ where part - delegate?
- Linq query with Contains having null value
- In a multitier application should a client be allowed to send its own linq expressions to the server?
- Trying to make a synchronous task into an asynchronous task
- Obout Grid foreign key value Object Data Source