Tuesday, February 22, 2005
I upgraded to version 1.7 a few days ago. Activity on the Blog is still not getting tracked but this is likely some kind of thread permission issue. No big deal. Posting comments works just fine.
2/22/2005 3:56:47 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
 Wednesday, February 16, 2005

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!

2/16/2005 11:02:47 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [2]  | 
With a complext solution like DNN Visual Studio 2003 seems to get confused frequenty. Here is one such case and a simple workaround.
2/16/2005 9:56:22 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  | 
Introductory message
2/16/2005 2:49:19 PM (Pacific Standard Time, UTC-08:00)  #    Disclaimer  |  Comments [0]  |