public void Eliminar_anio(DmantencionTabla dts) { Comando.Connection = Conexion.AbrirConexion(); Comando.CommandText = "delete Anio where descripcion = '" + dts.get_descripcion() + "'"; Comando.CommandType = CommandType.Text; Comando.ExecuteNonQuery(); Conexion.CerrarConexion(); }
public void InsertarAnio(DmantencionTabla dts) { Comando.Connection = Conexion.AbrirConexion(); Comando.CommandText = "insert into Anio values('" + dts.get_descripcion() + "')"; Comando.CommandType = CommandType.Text; Comando.ExecuteNonQuery(); Comando.Parameters.Clear(); }