Esempio n. 1
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);
        }
Esempio n. 2
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);
        }