Exemplo n.º 1
0
        /// <summary>
        /// Adapter method for ObjectDataSource
        /// </summary>
        /// <returns>TravelPostCollection object</returns>
        public static TravelPostCollection GetAll()
        {
            TravelPostCollection list = new TravelPostCollection();

            list.FetchAll();
            return(list);
        }
Exemplo n.º 2
0
        /// <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);
        }