Пример #1
0
        /// <summary>
        /// Adapter method for ObjectDataSource
        /// </summary>
        /// <returns>GeoCityCollection object</returns>
        public static GeoCityCollection GetAll()
        {
            GeoCityCollection list = new GeoCityCollection();

            list.FetchAll();
            return(list);
        }
Пример #2
0
        /// <summary>
        /// Return a deep copy of this collection
        /// </summary>
        /// <returns>GeoCityCollection object</returns>
        public GeoCityCollection Clone()
        {
            GeoCityCollection clone = new GeoCityCollection();

            foreach (GeoCity city in this)
            {
                clone.Add(city.Clone());
            }
            clone.IsModified = this.IsModified;
            return(clone);
        }