QuoteReplyTopic: PassthruEsqlQuery Posted: 14-Sep-2009 at 10:09am
I am trying to run a query that looks like this:
parameterizedEsql =
SELECT VALUE oo FROM
Employees AS oo
WHERE oo.EmployeeID NOT IN
(
SELECT DER.EmployeeID FROM DailyEmployeeRoute as DER WHERE DER.DailyVehicleRouteID IN
(
SELECT DailyVehicleRouteID FROM DailyVehicleRoute as DVR WHERE DVR.RouteDate = '9/9/2009' ))
AND
oo.isActive =1
AND
oo.OperationID = 1
var
query = new PassthruEsqlQuery(typeof(Employee), parameterizedEsql);
When i run it I get this error:
'DailyEmployeeRoute' could not be resolved in the current scope or context. Make sure that all referenced variables are in scope, that required schemas are loaded, and that namespaces are referenced correctly.
EF is expecting an EntitySet named "DailyVehicleRoute" in the conceptual model. If you've used the pluralizer, the name is most likely "DailyVehicleRoutes".
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum