/// <summary> /// Run Organization_SelectAll, and return results as a list of OrganizationRow. /// </summary> /// <returns>A collection of OrganizationRow.</returns> public static List <OrganizationContract> SelectAllNow() { var driver = new OrganizationLogic(); driver.SelectAll(); return(driver.Results); }
/// <summary> /// Read all Organization rows from the provided reader into the list structure of OrganizationRows /// </summary> /// <param name="reader">The result of running a sql command.</param> /// <returns>A populated OrganizationRows or an empty OrganizationRows if there are no results.</returns> public static List <OrganizationContract> ReadAllNow(SqlDataReader reader) { var driver = new OrganizationLogic(); driver.ReadAll(reader); return(driver.Results); }
/// <summary> /// Run Organization_SelectAll, and return results as a list of OrganizationRow. /// </summary> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of OrganizationRow.</returns> public static List <OrganizationContract> SelectAllNow(SqlConnection connection, SqlTransaction transaction) { var driver = new OrganizationLogic(); driver.SelectAll(connection, transaction); return(driver.Results); }
/// <summary> /// Run Organization_SelectBy_ContentInspectionId, and return results as a list of OrganizationRow. /// </summary> /// <param name="fldContentInspectionId">Value for ContentInspectionId</param> /// <returns>A collection of OrganizationRow.</returns> public static List <OrganizationContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId ) { var driver = new OrganizationLogic(); driver.SelectBy_ContentInspectionId(fldContentInspectionId ); return(driver.Results); }
/// <summary> /// Run Organization_Search, and return results as a list of OrganizationRow. /// </summary> /// <param name="fldOrganizationName">Value for OrganizationName</param> /// <returns>A collection of OrganizationRow.</returns> public static List <OrganizationContract> SearchNow(string fldOrganizationName ) { var driver = new OrganizationLogic(); driver.Search(fldOrganizationName ); return(driver.Results); }
/// <summary> /// Run Organization_SelectBy_ContentInspectionId, and return results as a list of OrganizationRow. /// </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 OrganizationRow.</returns> public static List <OrganizationContract> SelectBy_ContentInspectionIdNow(int fldContentInspectionId , SqlConnection connection, SqlTransaction transaction) { var driver = new OrganizationLogic(); driver.SelectBy_ContentInspectionId(fldContentInspectionId , connection, transaction); return(driver.Results); }
/// <summary> /// Run Organization_Search, and return results as a list of OrganizationRow. /// </summary> /// <param name="fldOrganizationName">Value for OrganizationName</param> /// <param name="connection">The SqlConnection to use</param> /// <param name="transaction">The SqlTransaction to use</param> /// <returns>A collection of OrganizationRow.</returns> public static List <OrganizationContract> SearchNow(string fldOrganizationName , SqlConnection connection, SqlTransaction transaction) { var driver = new OrganizationLogic(); driver.Search(fldOrganizationName , connection, transaction); return(driver.Results); }
/// <summary>"); /// Advance one, and read values into a Organization /// </summary> /// <param name="reader">The result of running a sql command.</param>"); /// <returns>A Organization or null if there are no results.</returns> public static OrganizationContract ReadOneNow(SqlDataReader reader) { var driver = new OrganizationLogic(); return(driver.ReadOne(reader) ? driver.Results[0] : null); }