I have and web api and I use entity framework but for procedure I am calling procedure like code below
public List<PDS_SPR_ATAMA> GetListAtama()
{
List<PDS_SPR_ATAMA> result = new List<PDS_SPR_ATAMA>();
try
{
var param4 = new OracleParameter("PRC", OracleDbType.Cursor, ParameterDirection.Output);
result = _db_dev.Database.SqlQuery<PDS_SPR_ATAMA>(
"BEGIN BMS.PA_HR_PORTAL.PR_GET_SPR_ATAMALAR(:V_PRC); end;", param4).ToList();
return result;
}
catch (Exception ex)
{
return result;
}
}
as library I use
using Devart.Data.Oracle;
I take error below
The Parameters collection only accepts Devart.Data.Oracle.OracleParameter type objects
How can I solve problem. Thanks in advance