Exemplo n.º 1
0
        public void ExecuteDeleteCommand <T>(IDbTransaction p_transaction, string p_sqlWhere)
            where T : new()
        {
            TableInformation t_tableInformation = this.GetTableInformations(typeof(T));
            SqlCommandHelper t_sqlHelper        = new SqlCommandHelper(m_providerConfiguration, t_tableInformation);

            string t_sql = t_sqlHelper.CreateDeleteByWhere(p_sqlWhere);

            IDbCommand cmd = p_transaction.Connection.CreateCommand();

            cmd.Transaction = p_transaction;
            cmd.CommandText = t_sql;

            cmd.ExecuteNonQuery();
        }