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

        /// <returns>A collection of ElectionCandidateRow.</returns>
        public static List <ElectionCandidateContract> SelectAllNow()
        {
            var driver = new ElectionCandidateLogic();

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

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

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }