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());

Related Articles