Exemplo n.º 1
0
        /// <summary>
        /// 克隆
        /// </summary>
        /// <returns>SQL元素集合</returns>
        public virtual object Clone()
        {
            SqlElementCollection collection = new SqlElementCollection();

            foreach (SqlElement item in this)
            {
                collection.Add(item.Clone() as SqlElement);
            }

            return(collection);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 创建子对象集合。
 /// </summary>
 protected void CreateChildCollection()
 {
     this.childCollection = new SqlElementCollection();
 }