/// <summary> /// Creates a new <see cref="KCommandQuery"/> instance associated with this link object. /// </summary> /// <param name="link">The link the comand will be associated to.</param> /// <returns>The new created command.</returns> public static KCommandQuery Query( this IKLink link ) { var cmd = new KCommandQuery( link ); return cmd; }
/// <summary> /// Clones this command. /// </summary> /// <returns></returns> public KCommandQuery Clone() { var cloned = new KCommandQuery( this.Link ); OnClone( cloned ); cloned._TableAliasList.AddRange( this._TableAliasList ); cloned._TextTop = this._TextTop; cloned._TextSelect = this._TextSelect; cloned._TextFrom = this._TextFrom; cloned._TextJoin = this._TextJoin; cloned._TextWhere = this._TextWhere; cloned._TextGroupBy = this._TextGroupBy; cloned._TextOrderBy = this._TextOrderBy; return cloned; }