The following line works fine and gives me all employees:
Code:
IList test = entityService.ExecuteSQLQuery("SELECT {emp.*} FROM Employees {emp}", "emp", typeof(Employee));
The next line gives me the error: No column name found for property [Active] [].
Code:
IList test = entityService.ExecuteSQLQuery("SELECT {emp}.Active AS {emp.Active} FROM Employees {emp}", "emp", typeof(Employee));
The columns are there and the mapping file is correct. Any clues what I did wrong?
UPDATE:
I tried the following:
Code:
IList test = entityService.ExecuteSQLQuery("SELECT {emp}.Active AS Test FROM Employees {emp}", "emp", typeof(Employee));
The SQL query it generated was correct, but I got the following exception: System.IndexOutOfRangeException: EmployeeId0_
Thanks, Cepheus.