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

            // show the framework that this is a child object
            obj.MarkAsChild();
            obj.Fetch(dr);
            obj.LoadProperty(B05_CountryObjectsProperty, B05_CountryColl.NewB05_CountryColl());
            obj.MarkOld();
            return(obj);
        }