Example #1
0
		/// <summary>
		/// Clones this command.
		/// </summary>
		/// <returns></returns>
		public KCommandInsert Clone()
		{
			var cloned = new KCommandInsert( this.Link, x => _TextTable ); OnClone( cloned );
			cloned._TableAliasList.AddRange( this._TableAliasList );
			cloned._TextColumn = _TextColumn;
			cloned._TextValues = _TextValues;
			return cloned;
		}
Example #2
0
		/// <summary>
		/// Creates a new <see cref="KCommandInsert"/> instance associated with this link object for the table given.
		/// </summary>
		/// <param name="link">The link the command will be associated to.</param>
		/// <param name="table">The table this command will refer to.</param>
		/// <returns>The new created command.</returns>
		public static KCommandInsert Insert( this IKLink link, Func<dynamic, object> table )
		{
			var cmd = new KCommandInsert( link, table );
			return cmd;
		}