Esempio n. 1
0
        //Put your code in a separate file.  This is auto generated.
        /// <summary>
        /// Run Organizations_SelectAll, and return results as a list of OrganizationsRow.
        /// </summary>

        /// <returns>A collection of OrganizationsRow.</returns>
        public static List <OrganizationsContract> SelectAllNow()
        {
            var driver = new OrganizationsLogic();

            driver.SelectAll();
            return(driver.Results);
        }
Esempio n. 2
0
        /// <summary>
        /// Run Organizations_SelectAll, and return results as a list of OrganizationsRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

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

            driver.ReadAll(reader);

            return(driver.Results);
        }
Esempio n. 4
0
        /// <summary>
        /// Run Organizations_SelectBy_ConfirmedByUserId, and return results as a list of OrganizationsRow.
        /// </summary>
        /// <param name="fldConfirmedByUserId">Value for ConfirmedByUserId</param>
        /// <returns>A collection of OrganizationsRow.</returns>
        public static List <OrganizationsContract> SelectBy_ConfirmedByUserIdNow(int fldConfirmedByUserId
                                                                                 )
        {
            var driver = new OrganizationsLogic();

            driver.SelectBy_ConfirmedByUserId(fldConfirmedByUserId
                                              );
            return(driver.Results);
        }
Esempio n. 5
0
        /// <summary>
        /// Run Organizations_SelectBy_ConfirmedByUserId, and return results as a list of OrganizationsRow.
        /// </summary>
        /// <param name="fldConfirmedByUserId">Value for ConfirmedByUserId</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of OrganizationsRow.</returns>
        public static List <OrganizationsContract> SelectBy_ConfirmedByUserIdNow(int fldConfirmedByUserId
                                                                                 , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new OrganizationsLogic();

            driver.SelectBy_ConfirmedByUserId(fldConfirmedByUserId
                                              , connection, transaction);

            return(driver.Results);
        }
Esempio n. 6
0
        /// <summary>
        /// Run Organizations_Search, and return results as a list of OrganizationsRow.
        /// </summary>
        /// <param name="fldOrganizationName">Value for OrganizationName</param>
        /// <param name="fldSourceUrl">Value for SourceUrl</param>
        /// <returns>A collection of OrganizationsRow.</returns>
        public static List <OrganizationsContract> SearchNow(string fldOrganizationName
                                                             , string fldSourceUrl
                                                             )
        {
            var driver = new OrganizationsLogic();

            driver.Search(fldOrganizationName
                          , fldSourceUrl
                          );
            return(driver.Results);
        }
Esempio n. 7
0
        /// <summary>
        /// Run Organizations_Search, and return results as a list of OrganizationsRow.
        /// </summary>
        /// <param name="fldOrganizationName">Value for OrganizationName</param>
        /// <param name="fldSourceUrl">Value for SourceUrl</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of OrganizationsRow.</returns>
        public static List <OrganizationsContract> SearchNow(string fldOrganizationName
                                                             , string fldSourceUrl
                                                             , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new OrganizationsLogic();

            driver.Search(fldOrganizationName
                          , fldSourceUrl
                          , connection, transaction);

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

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