/// <summary> /// Adapter method for ObjectDataSource /// </summary> /// <returns>TravelImageCollection object</returns> public static TravelImageCollection GetAll() { TravelImageCollection list = new TravelImageCollection(); list.FetchAll(); return(list); }
/// <summary> /// Return a deep copy of this collection /// </summary> public TravelImageCollection Clone() { TravelImageCollection clone = new TravelImageCollection(); foreach (TravelImage image in this) { clone.Add(image.Clone()); } clone.IsModified = this.IsModified; return(clone); }