예제 #1
0
        /// <summary>
        /// Adapter method for ObjectDataSource
        /// </summary>
        /// <returns>a GeoCountryCollection</returns>
        public static GeoCountryCollection GetAll()
        {
            GeoCountryCollection list = new GeoCountryCollection();

            list.FetchAll();
            return(list);
        }
예제 #2
0
        /// <summary>
        /// Return a deep copy of this collection
        /// </summary>
        /// <returns>a GeoCountryCollection</returns>
        public GeoCountryCollection Clone()
        {
            GeoCountryCollection clone = new GeoCountryCollection();

            foreach (GeoCountry country in this)
            {
                clone.Add(country.Clone());
            }
            clone.IsModified = this.IsModified;
            return(clone);
        }