Example #1
0
        /// <summary>
        /// Run RolePermission_SelectAll, and return results as a list of RolePermissionRow.
        /// </summary>

        /// <returns>A collection of RolePermissionRow.</returns>
        public static List <RolePermissionContract> SelectAllNow()
        {
            var driver = new RolePermissionLogic();

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

            driver.ReadAll(reader);

            return(driver.Results);
        }
Example #3
0
        /// <summary>
        /// Run RolePermission_SelectAll, and return results as a list of RolePermissionRow.
        /// </summary>

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

            driver.SelectAll(connection, transaction);

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

            driver.SelectBy_PermissionId(fldPermissionId
                                         );
            return(driver.Results);
        }
Example #5
0
        /// <summary>
        /// Run RolePermission_SelectBy_PermissionId, and return results as a list of RolePermissionRow.
        /// </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 RolePermissionRow.</returns>
        public static List <RolePermissionContract> SelectBy_PermissionIdNow(int fldPermissionId
                                                                             , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new RolePermissionLogic();

            driver.SelectBy_PermissionId(fldPermissionId
                                         , connection, transaction);

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

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