Ejemplo n.º 1
0
        /// <summary>
        /// Run Locations_SelectAll, and return results as a list of LocationsRow.
        /// </summary>

        /// <returns>A collection of LocationsRow.</returns>
        public static List <LocationsContract> SelectAllNow()
        {
            var driver = new LocationsLogic();

            driver.SelectAll();
            return(driver.Results);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Run Locations_SelectAll, and return results as a list of LocationsRow.
        /// </summary>

        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of LocationsRow.</returns>
        public static List <LocationsContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new LocationsLogic();

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }