コード例 #1
0
        /// <summary>
        /// Adapter method for ObjectDataSource
        /// </summary>
        /// <returns>TravelUserCollection object</returns>
        public static TravelUserCollection GetAll()
        {
            TravelUserCollection list = new TravelUserCollection();

            list.FetchAll();
            return(list);
        }
コード例 #2
0
        /// <summary>
        /// Return a deep copy of this collection
        /// </summary>
        /// <returns>TravelUserCollection object</returns>
        public TravelUserCollection Clone()
        {
            TravelUserCollection clone = new TravelUserCollection();

            foreach (TravelUser userDetail in this)
            {
                clone.Add(userDetail.Clone());
            }
            clone.IsModified = this.IsModified;
            return(clone);
        }