Exemplo n.º 1
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Loads a set of AutomobileParts using the specified Uri AutomobileGUID.
            /// </summary>
            /// <param name="a_xURI">The database Uri used to perform the action.</param>
            /// <param name="a_xDataRequest">DataRequest that specifies the set of AutomobileParts to be retrieved.</param>
            /// <returns>AutomobilePartWebEntity</returns>
            public static IEnumerable <AutomobilePartWebEntity> Load_ByAutomobileGUID(Uri a_xURI, GUID a_xAutomobileGUID)
            {
                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                return(m_xAutomobilePartWebEntity.Load_ByAutomobileGUID(a_xURI, a_xAutomobileGUID));
            }
Exemplo n.º 2
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Import a AutomobilePartWebEntity from the specified JSON string.
            /// </summary>
            /// <param name="a_sJSONObject"></param>
            /// <returns>AutomobilePartWebEntity</returns>
            public static AutomobilePartWebEntity Import_FromJSON(string a_sJSONObject)
            {
                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                return(m_xAutomobilePartWebEntity.Import_FromJSON(a_sJSONObject));
            }
Exemplo n.º 3
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Loads a set of AutomobileParts using the specified Uri and DataRequest.
            /// </summary>
            /// <param name="a_xURI">The database Uri 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<AutomobilePartWebEntity></returns>
            public static IEnumerable <AutomobilePartWebEntity> Load(Uri a_xURI, DataRequest a_xDataRequest, out DataResult a_xDataResult)
            {
                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                return(m_xAutomobilePartWebEntity.Load(a_xURI, a_xDataRequest, out a_xDataResult));
            }
Exemplo n.º 4
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Delete a AutomobilePart using the specified Uri and AutomobilePartGUID.
            /// </summary>
            /// <param name="a_xURI">The database Uri used to perform the action.</param>
            /// <param name="a_xAutomobilePartGUID">The unique identifies of the AutomobilePart to be retrieved.</param>
            /// <returns>AutomobilePartWebEntity</returns>
            public static AutomobilePartWebEntity Delete(Uri a_xURI, GUID a_xAutomobilePartGUID)
            {
                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                return(m_xAutomobilePartWebEntity.Delete(a_xURI, a_xAutomobilePartGUID));
            }
Exemplo n.º 5
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Update this AutomobilePart using the specified Uri.
            /// </summary>
            /// <param name="a_xURI">The database  Uri used to perform the action.</param>
            /// <returns>AutomobilePartWebEntity</returns>
            public static AutomobilePartWebEntity Update(Uri a_xURI)
            {
                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                return(m_xAutomobilePartWebEntity.Update(a_xURI));
            }
Exemplo n.º 6
0
            //=======================================================================
            //=======================================================================

            /// <summary>
            /// Loads a set of AutomobileParts using the specified Uri and DataRequest.
            /// </summary>
            /// <param name="a_xURI">The database Uri used to perform the action.</param>
            /// <returns>AutomobilePartWebEntity</returns>
            public static IEnumerable <AutomobilePartWebEntity> Load(Uri a_xURI)
            {
                IEnumerable <AutomobilePartWebEntity> xReturnValue = null;

                if (m_xAutomobilePartWebEntity == null)
                {
                    m_xAutomobilePartWebEntity = new AutomobilePartWebEntity();
                }

                xReturnValue = m_xAutomobilePartWebEntity.Load(a_xURI);

                return(xReturnValue);
            }