コード例 #1
0
        /// <summary>
        /// Run Voter_SelectAll, and return results as a list of VoterRow.
        /// </summary>

        /// <returns>A collection of VoterRow.</returns>
        public static List <VoterContract> SelectAllNow()
        {
            var driver = new VoterLogic();

            driver.SelectAll();
            return(driver.Results);
        }
コード例 #2
0
        /// <summary>
        /// Run Voter_SelectAll, and return results as a list of VoterRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }