Ok, so I'm getting into DNN pretty seriously now. I'd like to use llblgen and I'm wondering what everyone is finding to be the best strategy for development. As an example to compare/contrast, please take a look at this excellent tutorial on CodeProject:
http://www.codeproject.com/aspnet/Creating_A_DNNModule.asp
This outlines how things are done w/ the standard model of development. I changed the following pieces to use LLBL:
- Use LLBL to generate code, but altered project properties to look for the key: SiteSqlServer in the web.config instead of the default Main.ConnectionString.
- Removed the GuestBookInfo class and used LLBL's GuestBookEntity instead
- Added LLBL ref's to solution
- Altered the code in the DataProvider (abstract and SQL) to accept GuestBookEntity objects instead of the individual properties that comprise the GuestBookEntity where applicable. (Just seemed easier)
- Altered GuestBookController class to return EntityCollections instead of List<GuestBookInfo>
- Removed the Object Data Source objects, and went back to old-school databinding. :-)
I have a few concerns about this entire process, the biggest one is unit testing. (This is really a DNN question more than LLBL). Is there a way to test your code when you develop directly in the web project? It seems like developing in external projects would let me test, but would make it a pain to view the modules in the portal. Does anyone have any of their own preferred workflows that they'd like to share?
Bert, if you're reading this, I saw you mentioned on another forum that you had a CodeSmith template that consumed your llbl project file to create your modules. I couldn't find it here, so perhaps if you could post a link?