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