I appreciate dapper, but I am already facing some problems.
I'm trying to do it
using (IDbConnection connection = GetConnection()) { connection.Open(); var result = connection.Query( "select * from myTable where ID_PK = @a;", new { a = 1 }); }
It throws ORA-00936: missing OracleException expression on line 393 in SqlMapper.cs
using (var reader = cmd.ExecuteReader())
When I remove the parameter, I get the whole table in the result variable.
The query works without problems in sqldeveloper. I am using Oracle.DataAccess Assembly 2.112.2.0
oracle exception oracle11g orm dapper
mrt181
source share