예제 #1
0
        /// <summary>
        /// Run Role_Search, and return results as a list of RoleRow.
        /// </summary>
        /// <param name="fldTitle">Value for Title</param>
        /// <param name="fldDescription">Value for Description</param>
        /// <param name="fldWINSID">Value for WINSID</param>
        /// <returns>A collection of RoleRow.</returns>
        public static List <RoleContract> SearchNow(string fldTitle
                                                    , string fldDescription
                                                    , string fldWINSID
                                                    )
        {
            var driver = new RoleLogic();

            driver.Search(fldTitle
                          , fldDescription
                          , fldWINSID
                          );
            return(driver.Results);
        }
예제 #2
0
        /// <summary>
        /// Run Role_Search, and return results as a list of RoleRow.
        /// </summary>
        /// <param name="fldTitle">Value for Title</param>
        /// <param name="fldDescription">Value for Description</param>
        /// <param name="fldWINSID">Value for WINSID</param>
        /// <param name="connection">The SqlConnection to use</param>
        /// <param name="transaction">The SqlTransaction to use</param>
        /// <returns>A collection of RoleRow.</returns>
        public static List <RoleContract> SearchNow(string fldTitle
                                                    , string fldDescription
                                                    , string fldWINSID
                                                    , SqlConnection connection, SqlTransaction transaction)
        {
            var driver = new RoleLogic();

            driver.Search(fldTitle
                          , fldDescription
                          , fldWINSID
                          , connection, transaction);

            return(driver.Results);
        }