/// <summary> /// Adapter method for ObjectDataSource /// </summary> /// <returns>GeoCityCollection object</returns> public static GeoCityCollection GetAll() { GeoCityCollection list = new GeoCityCollection(); list.FetchAll(); return(list); }
/// <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); }