/// <summary> /// Execute. /// </summary> /// <param name="command">The command.</param> /// <param name="db">The database.</param> public static void execute(this APSqlUpdateCommand command, APDatabase db) { db.ExecuteNonQuery(command); }
/// <summary> /// Execute. /// </summary> /// <param name="command">The command.</param> /// <param name="db">The database.</param> public static void execute(this APSqlDeleteCommand command, APDatabase db) { db.ExecuteNonQuery(command); }
/// <summary> /// Executes an SQL statement against the Connection and returns the number of rows affected. /// </summary> /// <param name="command">The command.</param> /// <returns>The number of rows affected.</returns> protected int ExecuteNonQuery(APSqlCommand command) { return(_database.ExecuteNonQuery(command)); }