/// <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);
		}
Esempio n. 2
0
 /// <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);
 }
Esempio n. 3
0
 /// <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));
 }