/// <summary> /// Run Location_SelectAll, and return results as a list of LocationRow. /// </summary> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SelectAllNow() { var driver = new LocationLogic(); driver.SelectAll(); return(driver.Results); }
/// <summary> /// Read all Location rows from the provided reader into the list structure of LocationRows /// </summary> /// <param name="reader">The result of running a sql command.</param> /// <returns>A populated LocationRows or an empty LocationRows if there are no results.</returns> public static List <LocationContract> ReadAllNow(SqlDataReader reader) { var driver = new LocationLogic(); driver.ReadAll(reader); return(driver.Results); }
/// <summary> /// Run Location_SelectAll, and return results as a list of LocationRow. /// </summary> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction) { var driver = new LocationLogic(); driver.SelectAll(connection, transaction); return(driver.Results); }
/// <summary> /// Run Location_SelectBy_ContentInspectionId, and return results as a list of LocationRow. /// </summary> /// <param name="fldContentInspectionId">Value for ContentInspectionId</param> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId ) { var driver = new LocationLogic(); driver.SelectBy_ContentInspectionId(fldContentInspectionId ); return(driver.Results); }
/// <summary> /// Run Location_Search, and return results as a list of LocationRow. /// </summary> /// <param name="fldLocationName">Value for LocationName</param> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SearchNow(string fldLocationName ) { var driver = new LocationLogic(); driver.Search(fldLocationName ); return(driver.Results); }
/// <summary> /// Run Location_SelectBy_ContentInspectionId, and return results as a list of LocationRow. /// </summary> /// <param name="fldContentInspectionId">Value for ContentInspectionId</param> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId , SqlConnection connection, SqlTransaction transaction) { var driver = new LocationLogic(); driver.SelectBy_ContentInspectionId(fldContentInspectionId , connection, transaction); return(driver.Results); }
/// <summary> /// Run Location_Search, and return results as a list of LocationRow. /// </summary> /// <param name="fldLocationName">Value for LocationName</param> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of LocationRow.</returns> public static List <LocationContract> SearchNow(string fldLocationName , SqlConnection connection, SqlTransaction transaction) { var driver = new LocationLogic(); driver.Search(fldLocationName , connection, transaction); return(driver.Results); }
/// <summary>"); /// Advance one, and read values into a Location /// </summary> /// <param name="reader">The result of running a sql command.</param>"); /// <returns>A Location or null if there are no results.</returns> public static LocationContract ReadOneNow(SqlDataReader reader) { var driver = new LocationLogic(); return(driver.ReadOne(reader) ? driver.Results[0] : null); }