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); }
private IDbCommand InitiCommand(object entity = null) { var com = this._conn.GetIDbCommand(this._mapper.ServiceKey); com.CommandText = this._bat.ToString(); com.CommandType = this._bat.CommandType; _bat.SetCommandParameter(com.CommandText, com.Parameters, entity); return(com); }