Which data connection are you using, System.Data.OracleClient or
System.Data.OleDb?
I'll take a guess. Here's an example that uses OracleClient to delete a
record from the database. It needs the primary key of the record to be
deleted passed in.
OracleCommand cmd = new OracleCommand("DeleteStoredProcedureName",
connOracleConnectionObject);
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter p_ID = new OracleParameter("PrimaryKeyID",
OracleType.Int32);
p_ID.Value = _ID; // _ID is class level variable (aka field) that
holds the id for the record to be deleted
cmd.Parameters.Add(p_ID);
cmd.ExecuteNonQuery();
To adapt my example for your code, you'd put ofunction where
DeleteStoredProcedureName is, change OracleType.Int32 to OracleType.Clob,
and change PrimaryKeyID to in_param. Oh, and of course change the assignment
of p_ID.Value from _ID to whatever your variable name is in C# that holds
the data.
For more info, check out Pro Oracle .Net Programming from APress
(
http://www.apress.com/book/bookDisplay.html?bID=378). It was nice because
it taught ADO.Net from the Oracle perspective (virtually every other book
I've seen used SQL Server, which is nice as I like SQL Server, but in my
experience Oracle is used just as much).
Hope this helps,
Robert