Esempio n. 1
0
 /// <summary>
 /// Executes the query, and returns the first column of the first row in the result set
 /// returned by the query. Additional columns or rows are ignored.
 /// </summary>
 /// <param name="command">The command.</param>
 /// <returns>The first column of the first row in the result set, or a null reference if
 /// the result set is empty.</returns>
 protected object ExecuteScalar(APSqlCommand command)
 {
     return(_database.ExecuteScalar(command));
 }
Esempio n. 2
0
 /// <summary>
 /// Execute.
 /// </summary>
 /// <param name="command">The command.</param>
 /// <param name="db">The database.</param>
 /// <returns>The scale.</returns>
 public static object executeScale(this APSqlSelectCommand command, APDatabase db)
 {
     return(db.ExecuteScalar(command));
 }
		/// <summary>
		/// Execute.
		/// </summary>
		/// <param name="command">The command.</param>
		/// <param name="db">The database.</param>
		/// <returns>The scale.</returns>
		public static object executeScale(this APSqlInsertCommand command, APDatabase db)
		{
			return db.ExecuteScalar(command);
		}