/// <summary> /// Run UserRole_SelectAll, and return results as a list of UserRoleRow. /// </summary> /// <returns>A collection of UserRoleRow.</returns> public static List <UserRoleContract> SelectAllNow() { var driver = new UserRoleLogic(); driver.SelectAll(); return(driver.Results); }
/// <summary> /// Run UserRole_SelectAll, and return results as a list of UserRoleRow. /// </summary> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of UserRoleRow.</returns> public static List <UserRoleContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction) { var driver = new UserRoleLogic(); driver.SelectAll(connection, transaction); return(driver.Results); }