I've attached a set of templates that are compatible with CodeSmith v2.6 (the free
version) for custom DotNetNuke 4.x module development. Like .NET Tiers,
these use a master template to control a number of subtemplates,
allowing you to set all your property values once and then generate
multiple output files. There's a detailed "How To" article here.
The templates create the following output files for each selected
table, allowing you to quickly and easily create functioning DotNetNuke
modules. The generated View[ModuleName].ascx control contains a
GridView and FormView that allows you to View, Add, Edit and Delete
records right out of the box.
You can generate additional custom stored procs and methods (beyond the standard five Get, GetAll, Add, Delete, and Update) by using a table column's extended properties.
Currently there are only templates for VB.NET, but a C# set, along with several other improvements, is on my To Do List.
Periodic updates will be available from the download section of my website. If you run into any problems or have any suggestions for improvement, please feel free to leave a comment in the site's forum.
Credit Where Credit Is Most Certainly Due: Portions of the template code are based on the DNN 3 templates created by Vicenç Masanas. I've also borrowed some concepts and code from both the .NET Tiers and NHibernate templates
for generating output files and stripping table prefixes. Also, the
code for the View.ascx file and codebehind is based on a great series
of articles by Michael Washington here.
Just to be on the safe side: