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

        /// <returns>A collection of ElectionLevelRow.</returns>
        public static List <ElectionLevelContract> SelectAllNow()
        {
            var driver = new ElectionLevelLogic();

            driver.SelectAll();
            return(driver.Results);
        }
コード例 #2
0
        /// <summary>
        /// Read all ElectionLevel rows from the provided reader into the list structure of ElectionLevelRows
        /// </summary>
        /// <param name="reader">The result of running a sql command.</param>
        /// <returns>A populated ElectionLevelRows or an empty ElectionLevelRows if there are no results.</returns>
        public static List <ElectionLevelContract> ReadAllNow(SqlDataReader reader)
        {
            var driver = new ElectionLevelLogic();

            driver.ReadAll(reader);

            return(driver.Results);
        }
コード例 #3
0
        /// <summary>
        /// Run ElectionLevel_SelectAll, and return results as a list of ElectionLevelRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }
コード例 #4
0
        /// <summary>
        /// Run ElectionLevel_SelectBy_ContentInspectionId, and return results as a list of ElectionLevelRow.
        /// </summary>
        /// <param name="fldContentInspectionId">Value for ContentInspectionId</param>
        /// <returns>A collection of ElectionLevelRow.</returns>
        public static List <ElectionLevelContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId
                                                                                   )
        {
            var driver = new ElectionLevelLogic();

            driver.SelectBy_ContentInspectionId(fldContentInspectionId
                                                );
            return(driver.Results);
        }
コード例 #5
0
        /// <summary>
        /// Run ElectionLevel_Search, and return results as a list of ElectionLevelRow.
        /// </summary>
        /// <param name="fldElectionLevelTitle">Value for ElectionLevelTitle</param>
        /// <returns>A collection of ElectionLevelRow.</returns>
        public static List <ElectionLevelContract> SearchNow(string fldElectionLevelTitle
                                                             )
        {
            var driver = new ElectionLevelLogic();

            driver.Search(fldElectionLevelTitle
                          );
            return(driver.Results);
        }
コード例 #6
0
        /// <summary>
        /// Run ElectionLevel_SelectBy_ContentInspectionId, and return results as a list of ElectionLevelRow.
        /// </summary>
        /// <param name="fldContentInspectionId">Value for ContentInspectionId</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of ElectionLevelRow.</returns>
        public static List <ElectionLevelContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId
                                                                                   , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new ElectionLevelLogic();

            driver.SelectBy_ContentInspectionId(fldContentInspectionId
                                                , connection, transaction);

            return(driver.Results);
        }
コード例 #7
0
        /// <summary>
        /// Run ElectionLevel_Search, and return results as a list of ElectionLevelRow.
        /// </summary>
        /// <param name="fldElectionLevelTitle">Value for ElectionLevelTitle</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of ElectionLevelRow.</returns>
        public static List <ElectionLevelContract> SearchNow(string fldElectionLevelTitle
                                                             , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new ElectionLevelLogic();

            driver.Search(fldElectionLevelTitle
                          , connection, transaction);

            return(driver.Results);
        }
コード例 #8
0
        /// <summary>");
        /// Advance one, and read values into a ElectionLevel
        /// </summary>
        /// <param name="reader">The result of running a sql command.</param>");
        /// <returns>A ElectionLevel or null if there are no results.</returns>
        public static ElectionLevelContract ReadOneNow(SqlDataReader reader)
        {
            var driver = new ElectionLevelLogic();

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