Esempio n. 1
0
        /// <summary>
        /// Factory method. Loads a <see cref="E06_Country"/> object from the given SafeDataReader.
        /// </summary>
        /// <param name="dr">The SafeDataReader to use.</param>
        /// <returns>A reference to the fetched <see cref="E06_Country"/> object.</returns>
        internal static E06_Country GetE06_Country(SafeDataReader dr)
        {
            E06_Country obj = new E06_Country();

            // show the framework that this is a child object
            obj.MarkAsChild();
            obj.Fetch(dr);
            obj.LoadProperty(E07_RegionObjectsProperty, E07_RegionColl.NewE07_RegionColl());
            obj.MarkOld();
            return(obj);
        }