public Employee GetEmployeewithID(int sEQ_EMP_ID)
{
int i;
Employee objEmp;
objEmp = new Employee();
try
{
objOracleCommand = new OracleCommand();
objOracleCommand.Connection = new OracleConnection(cs);
objOracleCommand.Connection.Open();
objOracleCommand.CommandType = CommandType.StoredProcedure;
objOracleCommand.CommandText = "PKG_EMPLOYEE.Get_Employee_with_ID";
objOracleCommand.Parameters.AddWithValue("P_SEQ_EMP_ID", sEQ_EMP_ID);
objOracleCommand.Parameters.Add("OUT_RESULT", OracleType.Cursor).Direction = ParameterDirection.Output;
objOracleDataAdapter = new OracleDataAdapter(objOracleCommand);
i = objOracleCommand.ExecuteNonQuery();
return objEmp;
}
catch (Exception ex)
{
throw ex;
}
}

Amit GuptaRank #190 · 12.8K reputationPosted Nov 3, 2019, 10:02 PM EST
Subbarao ARank #2,632 · 530 reputationPosted Nov 3, 2019, 10:17 PM EST
Mageshwaran RRank #411 · 6.1K reputationPosted Nov 14, 2019, 6:03 AM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts