I was not totally happy with the functionality provided by the otherwise excellent http://www.ericjsmith.net/codesmith/ templates provided here: http://dnnjungle.vmasanas.net/Default.aspx?tabid=1 . So I figured it was about time that I contribute something to the DNN community and try to fix this myself rather than (again) asking for help. The attached zip contains my new template files. Since these have new names you can unzip them next to your existing template files, they won't get over-written.
From the readme:
Changes:
- Added 'PlusAdd' support. PlusAdd works by feeding an Info object with relevant fields filled in.
If the record can be found no new one is created but another Info object is returned that is fully
filled in. Consider it a 'add if it doesn't already exists'. Note that you may have to edit the
stored procedure to alter the initial 'SELECT' query if needed to make the match more fuzzy. Note
that if the record does not exist it is created and returned with the ID filled in.
- All template routines now use a multi table selector. This speeds up cases where you have lots of
tables to mess with (can't you tell I had to? 
CodeSmithDNNTemplatesPlus.zip (14.78 KB)
Let me know what you think!