private IDbCommand InitiCommand(IDBbatBuilder commandText, object paramObj) { var com = this._conn.GetIDbCommand(this._mapper.ServiceKey); com.CommandText = commandText.ToString(); com.CommandType = CommandType.Text; commandText.SetCommandParameter(com.CommandText, com.Parameters, paramObj); return(com); }
public void Union(IDBbatBuilder source) { var a = source as DBbatBuilder <T>; this._sqltext.AppendLine("union"); this._sqltext.AppendLine(source.ToString()); if (a.where != null) { this.where.ChildItem = a.where; } }