Ejemplo n.º 1
0
		protected override void Dispose( bool disposing )
		{
			DEBUG.IndentLine( "\n-- KCommandDelete.Dispose( Disposing={0} ) - This={1}", disposing, this );

			if( _TableAliasList != null ) { _TableAliasList.Dispose(); _TableAliasList = null; }
			base.Dispose( disposing );

			DEBUG.Unindent();
		}
Ejemplo n.º 2
0
		/// <summary>
		/// Creates a new <see cref="KCommandDelete"/> instance associating it to the given link for the table given.
		/// <para>The dynamic lambda specification for the table should have the form "x => x.Table".</para>
		/// </summary>
		/// <param name="link">The link this command will be associated to.</param>
		/// <param name="table">The table this command refers to.</param>
		public KCommandDelete( IKLink link, Func<dynamic, object> table ) : base( link )
		{
			DEBUG.IndentLine( "\n-- KCommandDelete( Link, Table=?? )" );

			_TableAliasList = new KTableAliasList( Link.DbCaseSensitiveNames );

			if( table == null ) throw new ArgumentNullException( "Table" );
			_TextTable = Parser.Parse( table, rawstr: true );
			_TextTable = _TextTable.Validated( "Table", invalidChars: TypeHelper.InvalidNameChars );
			DEBUG.WriteLine( "\n-- Table: {0}", _TextTable );

			DEBUG.Unindent();
		}
Ejemplo n.º 3
0
		/// <summary>
		/// Creates a new instance of <see cref="KCommandQuery"/> associating it to the given link.
		/// </summary>
		/// <param name="link">The link this command will be associated to.</param>
		public KCommandQuery( IKLink link ) : base( link )
		{
			DEBUG.IndentLine( "\n-- KCommandQuery( Link )" );

			_TableAliasList = new KTableAliasList( Link.DbCaseSensitiveNames );

			DEBUG.Unindent();
		}