/// <summary>
        /// Run Election_SelectAll, and return results as a list of ElectionRow.
        /// </summary>

        /// <returns>A collection of ElectionRow.</returns>
        public static List <ElectionContract> SelectAllNow()
        {
            var driver = new ElectionLogic();

            driver.SelectAll();
            return(driver.Results);
        }
        /// <summary>
        /// Read all Election rows from the provided reader into the list structure of ElectionRows
        /// </summary>
        /// <param name="reader">The result of running a sql command.</param>
        /// <returns>A populated ElectionRows or an empty ElectionRows if there are no results.</returns>
        public static List <ElectionContract> ReadAllNow(SqlDataReader reader)
        {
            var driver = new ElectionLogic();

            driver.ReadAll(reader);

            return(driver.Results);
        }
        /// <summary>
        /// Run Election_SelectAll, and return results as a list of ElectionRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }
        /// <summary>
        /// Run Election_SelectBy_LocationId, and return results as a list of ElectionRow.
        /// </summary>
        /// <param name="fldLocationId">Value for LocationId</param>
        /// <returns>A collection of ElectionRow.</returns>
        public static List <ElectionContract> SelectBy_LocationIdNow(int fldLocationId
                                                                     )
        {
            var driver = new ElectionLogic();

            driver.SelectBy_LocationId(fldLocationId
                                       );
            return(driver.Results);
        }
        /// <summary>
        /// Run Election_SelectBy_LocationId, and return results as a list of ElectionRow.
        /// </summary>
        /// <param name="fldLocationId">Value for LocationId</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of ElectionRow.</returns>
        public static List <ElectionContract> SelectBy_LocationIdNow(int fldLocationId
                                                                     , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new ElectionLogic();

            driver.SelectBy_LocationId(fldLocationId
                                       , connection, transaction);

            return(driver.Results);
        }
        /// <summary>");
        /// Advance one, and read values into a Election
        /// </summary>
        /// <param name="reader">The result of running a sql command.</param>");
        /// <returns>A Election or null if there are no results.</returns>
        public static ElectionContract ReadOneNow(SqlDataReader reader)
        {
            var driver = new ElectionLogic();

            return(driver.ReadOne(reader) ? driver.Results[0] : null);
        }