Ver Mensaje Individual
  #5 (permalink)  
Antiguo 29/06/2013, 14:06
SoVre
 
Fecha de Ingreso: abril-2012
Mensajes: 17
Antigüedad: 12 años, 1 mes
Puntos: 0
Respuesta: no se puede convertir implicitamente int en dataset.datatable

Supongo que esta hablando de esto:

Código:
public virtual int insertvideos(string p1, string p2, string p3) {
            global::System.Data.SqlServerCe.SqlCeCommand command = this.CommandCollection[3];
            if ((p1 == null)) {
                throw new global::System.ArgumentNullException("p1");
            }
            else {
                command.Parameters[0].Value = ((string)(p1));
            }
            if ((p2 == null)) {
                throw new global::System.ArgumentNullException("p2");
            }
            else {
                command.Parameters[1].Value = ((string)(p2));
            }
            if ((p3 == null)) {
                throw new global::System.ArgumentNullException("p3");
            }
            else {
                command.Parameters[2].Value = ((string)(p3));
            }
            global::System.Data.ConnectionState previousConnectionState = command.Connection.State;
            if (((command.Connection.State & global::System.Data.ConnectionState.Open) 
                        != global::System.Data.ConnectionState.Open)) {
                command.Connection.Open();
            }
            int returnValue;
            try {
                returnValue = command.ExecuteNonQuery();
            }
            finally {
                if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
                    command.Connection.Close();
                }
            }
            return returnValue;
        }
Estaba en el dataset.designer.cs, se que no es lo mismo SQL que C# pero crei que eso me estaba preguntando.

Entonces como invocaria la funcion?

Última edición por SoVre; 29/06/2013 a las 15:21