Beispiel #1
0
        /// <summary>
        /// Run Permission_SelectAll, and return results as a list of PermissionRow.
        /// </summary>

        /// <returns>A collection of PermissionRow.</returns>
        public static List <PermissionContract> SelectAllNow()
        {
            var driver = new PermissionLogic();

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

            driver.ReadAll(reader);

            return(driver.Results);
        }
Beispiel #3
0
        /// <summary>
        /// Run Permission_SelectAll, and return results as a list of PermissionRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

            return(driver.Results);
        }
Beispiel #4
0
        /// <summary>
        /// Run Permission_SelectBy_PermissionId, and return results as a list of PermissionRow.
        /// </summary>
        /// <param name="fldPermissionId">Value for PermissionId</param>
        /// <returns>A collection of PermissionRow.</returns>
        public static List <PermissionContract> SelectBy_PermissionIdNow(int fldPermissionId
                                                                         )
        {
            var driver = new PermissionLogic();

            driver.SelectBy_PermissionId(fldPermissionId
                                         );
            return(driver.Results);
        }
Beispiel #5
0
        /// <summary>
        /// Run Permission_SelectBy_PermissionId, and return results as a list of PermissionRow.
        /// </summary>
        /// <param name="fldPermissionId">Value for PermissionId</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of PermissionRow.</returns>
        public static List <PermissionContract> SelectBy_PermissionIdNow(int fldPermissionId
                                                                         , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new PermissionLogic();

            driver.SelectBy_PermissionId(fldPermissionId
                                         , connection, transaction);

            return(driver.Results);
        }
Beispiel #6
0
        /// <summary>
        /// Run Permission_Search, and return results as a list of PermissionRow.
        /// </summary>
        /// <param name="fldPermissionName">Value for PermissionName</param>
        /// <param name="fldTitle">Value for Title</param>
        /// <returns>A collection of PermissionRow.</returns>
        public static List <PermissionContract> SearchNow(string fldPermissionName
                                                          , string fldTitle
                                                          )
        {
            var driver = new PermissionLogic();

            driver.Search(fldPermissionName
                          , fldTitle
                          );
            return(driver.Results);
        }
Beispiel #7
0
        /// <summary>
        /// Run Permission_Search, and return results as a list of PermissionRow.
        /// </summary>
        /// <param name="fldPermissionName">Value for PermissionName</param>
        /// <param name="fldTitle">Value for Title</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of PermissionRow.</returns>
        public static List <PermissionContract> SearchNow(string fldPermissionName
                                                          , string fldTitle
                                                          , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new PermissionLogic();

            driver.Search(fldPermissionName
                          , fldTitle
                          , connection, transaction);

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

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