Hi,
I am calling a procedure which have parameters like
"CALL \"Schemananme\".\"ProcedureName\"(?)"
From .net code
using (DbCommand dbCommand = db.GetStoredProcCommand("CALL \"Schemananme\".\"ProcedureName\"(?)")
{
db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);
ds = db.ExecuteDataSet(dbCommand);
}
I want to construct command text dynamically so I dont want give ? in the command text.
Because I am constructing it dynamically, I dont know how many ?'s are required.
Because Every procedure exists with different number of parameters.
any how i am adding input parameters
from the below line
db.AddInParameter(dbCommand, "p_test_Id", DbType.Int32, 3);
Please help me to construct the command text dynamically.