/// <summary> /// Selects all columns based on the given condition. /// </summary> /// <param name="connection">An opened <see cref="TechlabMySQL"/> object.</param> /// <param name="condition">A <see cref="MySqlConditionBuilder"/>. Passing <c>null</c> will select everything.</param> /// <param name="range">A nullable (ulong, ulong) tuple, specifying the range of results to return. Passing <c>null</c> will leave the range unspecified.</param> /// <returns>An <see cref="IEnumerable{T}"/> containing instances of <see cref="Product"/>.</returns> public static IEnumerable <Product> Select(TechlabMySQL connection, MySqlConditionBuilder condition = null, (ulong Start, ulong Amount)?range = null)
/// <summary> /// Selects columns based on the given conditions. /// </summary> /// <param name="connection">An opened <see cref="TechlabMySQL"/> object.</param> /// <param name="columns">An array specifying which columns to return. Passing <c>null</c> will select all columns.</param> /// <param name="condition">A <see cref="MySqlConditionBuilder"/>. Passing <c>null</c> will select everything.</param> /// <param name="range">A nullable (ulong, ulong) tuple, specifying the range of results to return. Passing <c>null</c> will leave the range unspecified.</param> /// <returns>An <see cref="IEnumerable{T}"/> filled with the results as object arrays.</returns> public static IEnumerable <object[]> Select(TechlabMySQL connection, string[] columns, MySqlConditionBuilder condition = null, (ulong Start, ulong Amount)?range = null)