I am evaluation dapper but i already running into some problems.
I am trying to do this
using (IDbConnection connection = GetConnection())
{
connection.Open();
var result = connection.Query(
"select * from myTable where ID_PK = @a;", new { a = 1 });
}
It throws an ORA-00936: missing expression OracleException at line 393 in the SqlMapper.cs
using (var reader = cmd.ExecuteReader())
When i remove the parameter i get the whole table into the result variable.
The query works without problems in sqldeveloper. I am using the Oracle.DataAccess Assembly 2.112.2.0