//======================================================================= //======================================================================= /// <summary> /// Import an AutomobilePart from the current SqlDataReader record. /// </summary> /// <param name="a_xSQLDataReader">The SqlDataReader containing the record to be imported.</param> /// <returns>AutomobilePartAppEntity</returns> public static AutomobilePartAppEntity Import(SqlDataReader a_xSQLDataReader) { if (m_xAutomobilePartAppEntity == null) { m_xAutomobilePartAppEntity = new AutomobilePartAppEntity(); } return(m_xAutomobilePartAppEntity.Import(a_xSQLDataReader)); }
//======================================================================= //======================================================================= /// <summary> /// Loads a set of AutomobileParts using the specified SQLConnection and DataRequest. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <param name="a_xDataRequest">DataRequest that specifies the set of AutomobileParts to be retrieved; including paging information.</param> /// <param name="a_xDataResult">A DataResult containing the TotalCount, FilterCount, PageSize, PageCount, PageNumber, and DatabaseDateTime for the request.</param> /// <returns>IEnumerable<AutomobilePartAppEntity></returns> public static IEnumerable <AutomobilePartAppEntity> Load(SqlConnection a_xSQLConnection, DataRequest a_xDataRequest, out DataResult a_xDataResult) { if (m_xAutomobilePartAppEntity == null) { m_xAutomobilePartAppEntity = new AutomobilePartAppEntity(); } return(m_xAutomobilePartAppEntity.Load(a_xSQLConnection, a_xDataRequest, out a_xDataResult)); }
//======================================================================= //======================================================================= /// <summary> /// Delete a AutomobilePart using the specified SQLConnection and AutomobilePartGUID. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <param name="a_xAutomobilePartGUID">The unique identifies of the AutomobilePart to be retrieved.</param> /// <returns>AutomobilePartAppEntity</returns> public static AutomobilePartAppEntity Delete(SqlConnection a_xSQLConnection, GUID a_xAutomobilePartGUID) { if (m_xAutomobilePartAppEntity == null) { m_xAutomobilePartAppEntity = new AutomobilePartAppEntity(); } return(m_xAutomobilePartAppEntity.Delete(a_xSQLConnection, a_xAutomobilePartGUID)); }
//======================================================================= //======================================================================= /// <summary> /// Loads a set of AutomobileParts using the specified SQLConnection and DataRequest. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <returns>AutomobilePartAppEntity</returns> public static IEnumerable <AutomobilePartAppEntity> Load(SqlConnection a_xSQLConnection) { if (m_xAutomobilePartAppEntity == null) { m_xAutomobilePartAppEntity = new AutomobilePartAppEntity(); } return(m_xAutomobilePartAppEntity.Load(a_xSQLConnection)); }
//======================================================================= //======================================================================= /// <summary> /// Update this AutomobilePart using the specified SQLConnection. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <returns>AutomobilePartAppEntity</returns> public static AutomobilePartAppEntity Update(SqlConnection a_xSQLConnection) { if (m_xAutomobilePartAppEntity == null) { m_xAutomobilePartAppEntity = new AutomobilePartAppEntity(); } return(m_xAutomobilePartAppEntity.Update(a_xSQLConnection)); }