/// <summary> /// Run ElectionCandidate_SelectAll, and return results as a list of ElectionCandidateRow. /// </summary> /// <returns>A collection of ElectionCandidateRow.</returns> public static List <ElectionCandidateContract> SelectAllNow() { var driver = new ElectionCandidateLogic(); driver.SelectAll(); return(driver.Results); }
/// <summary> /// Read all ElectionCandidate rows from the provided reader into the list structure of ElectionCandidateRows /// </summary> /// <param name="reader">The result of running a sql command.</param> /// <returns>A populated ElectionCandidateRows or an empty ElectionCandidateRows if there are no results.</returns> public static List <ElectionCandidateContract> ReadAllNow(SqlDataReader reader) { var driver = new ElectionCandidateLogic(); driver.ReadAll(reader); return(driver.Results); }
/// <summary> /// Run ElectionCandidate_SelectAll, and return results as a list of ElectionCandidateRow. /// </summary> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of ElectionCandidateRow.</returns> public static List <ElectionCandidateContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction) { var driver = new ElectionCandidateLogic(); driver.SelectAll(connection, transaction); return(driver.Results); }
/// <summary> /// Run ElectionCandidate_SelectBy_ElectionId, and return results as a list of ElectionCandidateRow. /// </summary> /// <param name="fldElectionId">Value for ElectionId</param> /// <returns>A collection of ElectionCandidateRow.</returns> public static List <ElectionCandidateContract> SelectBy_ElectionIdNow(int fldElectionId ) { var driver = new ElectionCandidateLogic(); driver.SelectBy_ElectionId(fldElectionId ); return(driver.Results); }
/// <summary> /// Run ElectionCandidate_SelectBy_ElectionId, and return results as a list of ElectionCandidateRow. /// </summary> /// <param name="fldElectionId">Value for ElectionId</param> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of ElectionCandidateRow.</returns> public static List <ElectionCandidateContract> SelectBy_ElectionIdNow(int fldElectionId , SqlConnection connection, SqlTransaction transaction) { var driver = new ElectionCandidateLogic(); driver.SelectBy_ElectionId(fldElectionId , connection, transaction); return(driver.Results); }
/// <summary>"); /// Advance one, and read values into a ElectionCandidate /// </summary> /// <param name="reader">The result of running a sql command.</param>"); /// <returns>A ElectionCandidate or null if there are no results.</returns> public static ElectionCandidateContract ReadOneNow(SqlDataReader reader) { var driver = new ElectionCandidateLogic(); return(driver.ReadOne(reader) ? driver.Results[0] : null); }