//======================================================================= //======================================================================= /// <summary> /// Import an Automobile from the current SqlDataReader record. /// </summary> /// <param name="a_xSQLDataReader">The SqlDataReader containing the record to be imported.</param> /// <returns>AutomobileAppEntity</returns> public static AutomobileAppEntity Import(SqlDataReader a_xSQLDataReader) { if (m_xAutomobileAppEntity == null) { m_xAutomobileAppEntity = new AutomobileAppEntity(); } return(m_xAutomobileAppEntity.Import(a_xSQLDataReader)); }
//======================================================================= //======================================================================= /// <summary> /// Loads a set of Automobiles 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 Automobiles 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<AutomobileAppEntity></returns> public static IEnumerable <AutomobileAppEntity> Load(SqlConnection a_xSQLConnection, DataRequest a_xDataRequest, out DataResult a_xDataResult) { if (m_xAutomobileAppEntity == null) { m_xAutomobileAppEntity = new AutomobileAppEntity(); } return(m_xAutomobileAppEntity.Load(a_xSQLConnection, a_xDataRequest, out a_xDataResult)); }
//======================================================================= //======================================================================= /// <summary> /// Delete a Automobile using the specified SQLConnection and AutomobileGUID. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <param name="a_xAutomobileGUID">The unique identifies of the Automobile to be retrieved.</param> /// <returns>AutomobileAppEntity</returns> public static AutomobileAppEntity Delete(SqlConnection a_xSQLConnection, GUID a_xAutomobileGUID) { if (m_xAutomobileAppEntity == null) { m_xAutomobileAppEntity = new AutomobileAppEntity(); } return(m_xAutomobileAppEntity.Delete(a_xSQLConnection, a_xAutomobileGUID)); }
//======================================================================= //======================================================================= /// <summary> /// Loads a set of Automobiles using the specified SQLConnection and DataRequest. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <returns>AutomobileAppEntity</returns> public static IEnumerable <AutomobileAppEntity> Load(SqlConnection a_xSQLConnection) { if (m_xAutomobileAppEntity == null) { m_xAutomobileAppEntity = new AutomobileAppEntity(); } return(m_xAutomobileAppEntity.Load(a_xSQLConnection)); }
//======================================================================= //======================================================================= /// <summary> /// Update this Automobile using the specified SQLConnection. /// </summary> /// <param name="a_xSQLConnection">The database SQLConnection used to perform the action.</param> /// <returns>AutomobileAppEntity</returns> public static AutomobileAppEntity Update(SqlConnection a_xSQLConnection) { if (m_xAutomobileAppEntity == null) { m_xAutomobileAppEntity = new AutomobileAppEntity(); } return(m_xAutomobileAppEntity.Update(a_xSQLConnection)); }