The following code gives a strange exception:
Code: Select all
using (var entitie = new Gw7Model.Gw7Entities())
{
string username = "mohd";
var user = entitie.Employees.FirstOrDefault(p => p.Name.ToLower() == username);
}
An error occurred while executing the command definition. See the inner exception for details.
Inner Exception:
{"ORA-00904: \"TOLOWER\": invalid identifier"}
Any help?