In short: I'm trying to run the Oracle stored procedure in the Entity Framework (I know this sounds weird, but in the general case, the application uses the Entity Framework, but this particular command cannot be processed by EF due to restrictions on changing key values).
The procedure has some parameters (only IN) and updates the values in the table. I tested it by doing:
execute PROCEDURE_NAME('parameter1', parameter2 etc.);
It works great.
My options are defined as follows:
OracleParameter param1 = new OracleParameter("PARAM1", OracleDbType.Varchar2, changed.PARAM1, ParameterDirection.Input);
object[] parameters = new object[] {
param1,...};
My request:
string query = "execute PROCEDURE_NAME(:PARAM1,...);";
I am trying to execute it from C # code. Namely, by running:
_context.Database.ExecuteSqlCommand(query, parameters);
ORA-00900: : SQL. , SQL, (, CREATE PROCEDURE). , , SQL * Plus. PL/SQL , .
, , .
, , , Entity Framework. ? , , - ?