This question is locked. New answers and comments are not allowed.
Hi,
I have an Employer table and a corresponding object.
When I try to do a wildcard search in OQL like
scope.GetOqlQuery<Employer>("SELECT emp FROM EmployerExtent AS emp WHERE emp.EmployerName LIKE \"*$1*\" ").ExecuteList("Ashok");
I get an error saying "expected 0 parameters received 1"
If I change the like to an equals without any wildcard it works fine. I even tried the GetOqlQuery().Execute() method with the same error. So generic or not, it throws an error. What could be the issue?
I have an Employer table and a corresponding object.
When I try to do a wildcard search in OQL like
scope.GetOqlQuery<Employer>("SELECT emp FROM EmployerExtent AS emp WHERE emp.EmployerName LIKE \"*$1*\" ").ExecuteList("Ashok");
I get an error saying "expected 0 parameters received 1"
If I change the like to an equals without any wildcard it works fine. I even tried the GetOqlQuery().Execute() method with the same error. So generic or not, it throws an error. What could be the issue?