Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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;
            }
        }