public int Insert(InsertClip insertClip) { List <DbParameter> parameters = new List <DbParameter>(); string sqlInsert = ""; insertClip.GetParameterString(excuteImport, ref sqlInsert, ref parameters); sqlInsert = "INSERT " + TableName + insertClip; return(excuteImport.ExcuteNotQuery(sqlInsert, parameters)); }
public int Insert(InsertClip insertClip, DBtransaction dbtran) { List <DbParameter> parameters = new List <DbParameter>(); string sqlInsert = ""; insertClip.GetParameterString(excuteImport, ref sqlInsert, ref parameters); string sqlStr = "INSERT " + TableName + sqlInsert; return(excuteImport.ExcuteNotQuery(sqlStr, parameters, dbtran)); }