Ejemplo n.º 1
0
        public void Procedure(Horas horas)
        {
            OracleCommand cmd = connection.CreateCommand();

            cmd.CommandText = "sum_value";
            cmd.CommandType = System.Data.CommandType.StoredProcedure;
            cmd.Parameters.Add("a_id", OracleDbType.Int32).Value      = horas.id_aluno;
            cmd.Parameters.Add("hora_ativ", OracleDbType.Int32).Value = horas.hora_total;
            connection.Open();
            cmd.ExecuteNonQuery();
            connection.Close();
        }
Ejemplo n.º 2
0
 protected bool Equals(Horas other)
 {
     return(id_hora.Equals(other.id_hora));
 }