我在评估Dapper,但已经遇到了一些问题。
我正在尝试做这件事。
查询在sqldeveloper中没有问题。我正在使用Oracle.DataAccess Assembly 2.112.2.0。
我正在尝试做这件事。
using (IDbConnection connection = GetConnection())
{
connection.Open();
var result = connection.Query(
"select * from myTable where ID_PK = @a;", new { a = 1 });
}
在SqlMapper.cs的第393行,它会抛出一个ORA-00936:缺少表达式OracleException。
using (var reader = cmd.ExecuteReader())
当我移除参数时,我会将整个表格放入结果变量中。查询在sqldeveloper中没有问题。我正在使用Oracle.DataAccess Assembly 2.112.2.0。