1234567891011121314151617181920212223242526272829303132333435 |
- using Ant.Common;
- using Ant.Utility;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace Ant.DbExpressions
- {
- public class DbDeleteExpression : DbExpression
- {
- DbTable _table;
- DbExpression _condition;
- public DbDeleteExpression(DbTable table)
- : this(table, null)
- {
- }
- public DbDeleteExpression(DbTable table, DbExpression condition)
- : base(DbExpressionType.Delete, UtilConstants.TypeOfVoid)
- {
- AntUtils.CheckNull(table);
- this._table = table;
- this._condition = condition;
- }
- public DbTable Table { get { return this._table; } }
- public DbExpression Condition { get { return this._condition; } }
- public override T Accept<T>(DbExpressionVisitor<T> visitor)
- {
- return visitor.Visit(this);
- }
- }
- }
|