using Ant.Common; using Ant.Utility; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ant.DbExpressions { public class DbInsertExpression : DbExpression { DbTable _table; Dictionary _insertColumns; public DbInsertExpression(DbTable table) : base(DbExpressionType.Insert, UtilConstants.TypeOfVoid) { AntUtils.CheckNull(table); this._table = table; this._insertColumns = new Dictionary(); } /// /// 表名 /// public DbTable Table { get { return this._table; } } /// /// 组装插入SQL语句的列 /// public Dictionary InsertColumns { get { return this._insertColumns; } } public override T Accept(DbExpressionVisitor visitor) { return visitor.Visit(this); } } }