Closed yuessir closed 4 years ago
Sorry for the late response. Are you sure this is a problem with Dapper and Dapper.Oracle? What do you get as a result when you execute this directly on a command object and return a datareader, e.g(pseudokode):
var command = new OracleCommand(_myconnection, "select CONTENT from table( CAST(Get_Clob_Content('20010044_01') AS TBL_OBJ_COLL))");
var reader = command.ExecuteReader();
I'm not sure what the problem is,so I decide to close the issue. Thanks for the good project.
My platform is .Net core 3.1 and using ODP.NET CORE library. I created a function on Oracle 11c and work fine. Function like :
When I try to use Dapper.net(v2.0.35) to get the entity from the function. And got the error(s) Oracle.ManagedDataAccess.Client.OracleException (0x80004005): ORA-00902:Invalid datatype error `
plain SQL text is working!
select CONTENT from table( CAST(Get_Clob_Content('20010044_01') AS TBL_OBJ_COLL))
C# code:
string sql=@$"select CONTENT as CONTENT from table( CAST(Get_Clob_Content('{tableName}','{colName}','{condition}','{id}') AS TBL_OBJ_COLL)) ";
Can Table() function map to entity? Is it a bug from ODO.NET Core?Any ideas? Thank you in advance.