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?