This is example of my code
public int AddPhoto(Photo photo, string id)
{ int s; s = 0; string PhotoIns;
PhotoIns = "insert into person_picture(persp_id,persp_comment,persp_picture) values("+photo.id+", "+photo.Comment+", "+photo.Image+")";
OracleConnection oracon = new OracleConnection(con);
oracon.Open();
OracleCommand InsPhoto = new OracleCommand(PhotoIns, oracon);
OracleDataReader oradr = InsPhoto.ExecuteReader();
oradr.Read();
if (oradr.RecordsAffected > 0)
s=Convert.ToInt32(oradr["persp_id"].ToString());
return s;
}