Cool Video Tutorial Introduction to Building a DAL using CodeSmith

I've heard lots of people rave about CodeSmith in the past. 

Rob posted a cool article + 15 minute video showing off how to use it to build a strongly typed DAL layer project (including unit tests and help documentation) from a database in under 15 minutes.

You can watch the online video tutorial and read about it here.

Hope this helps,

Scott

7 Comments

  • For all those who are starting out...

    Codesmith is cool, really nice tool. (I have one template for resetting identities in all tables - meaning I really use it and love it).



    But O/R mapper is a O/R mapper.... There are quite a few out there. Donot try to program that with CodeSmith templates.



    I have been there...It was not nice.

  • Cool video, however when you follow the instructions, nothing get's generated. I found someone else on the forums of CodeSmith with the same problem.

  • Hi Matt,



    I just sent Rob Howard email mentioning your comment and asking him to take a look at the written steps to see why you are seeing that.



    Thanks,



    Scott

  • Hi Matt,



    I just heard back from Rob and he said the tutorial has been updated. It involved setting a property on the template, EntireDatabase, from false to true.



    Thanks,



    Scott

  • I've used Codesmith in the past but am finding DAL generation with the VS2005 dataset designer easier as a separate class library to the web project. Is that a recommended way to go about creating DAL by the way? How come the dataset designer isn't available from within a web site project? Thanks.

  • Hi nz web guy,



    I usually recommend creating your DAL as a separate project, since that makes it more re-usable. It is, though, definitely available as well within a web-site project. Just choose Add New Item and select the "Dataset" item in the file new dialog.



    Hope this helps,



    Scott

  • really cool link
    very help to me to build my own dal using Codesmith tools

Comments have been disabled for this content.