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