/// <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> /// Read all UserRole rows from the provided reader into the list structure of UserRoleRows /// </summary> /// <param name="reader">The result of running a sql command.</param> /// <returns>A populated UserRoleRows or an empty UserRoleRows if there are no results.</returns> public static List <UserRoleContract> ReadAllNow(SqlDataReader reader) { var driver = new UserRoleLogic(); driver.ReadAll(reader); 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); }
/// <summary> /// Run UserRole_SelectBy_UserId, and return results as a list of UserRoleRow. /// </summary> /// <param name="fldUserId">Value for UserId</param> /// <returns>A collection of UserRoleRow.</returns> public static List <UserRoleContract> SelectBy_UserIdNow(int fldUserId ) { var driver = new UserRoleLogic(); driver.SelectBy_UserId(fldUserId ); return(driver.Results); }
/// <summary> /// Run UserRole_SelectBy_UserId, and return results as a list of UserRoleRow. /// </summary> /// <param name="fldUserId">Value for UserId</param> /// <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> SelectBy_UserIdNow(int fldUserId , SqlConnection connection, SqlTransaction transaction) { var driver = new UserRoleLogic(); driver.SelectBy_UserId(fldUserId , connection, transaction); return(driver.Results); }
/// <summary>"); /// Advance one, and read values into a UserRole /// </summary> /// <param name="reader">The result of running a sql command.</param>"); /// <returns>A UserRole or null if there are no results.</returns> public static UserRoleContract ReadOneNow(SqlDataReader reader) { var driver = new UserRoleLogic(); return(driver.ReadOne(reader) ? driver.Results[0] : null); }