private SqlCeCommand GetSQLComand(string SQL, int Timeout, List<SqlCeParameter> Parms) { AppSQLCommandCE oCommand; oCommand = new AppSQLCommandCE(this.oConnInfo, SQL, Parms); if (Parms != null) { if (Parms.Count > 0) { oCommand.CommandRef.Parameters.AddRange(Parms.ToArray()); } } return oCommand.CommandRef; }
private int GetRunCommand(string SQL, int Timeout, List<SqlCeParameter> Parms) { int iReturnVal = 0; AppSQLCommandCE oCommand; oCommand = new AppSQLCommandCE(this.oConnInfo, SQL, Parms); oCommand.Open(); iReturnVal = oCommand.CommandRef.ExecuteNonQuery(); oCommand.Close(); return iReturnVal; }