SubSonic 3 Alpha Updated
Many thanks to the folks who downloaded and ran the alpha. As I figured, I missed a few things. The good news is that I’ve fixed them, and 99% of them were with the templates – which is good news because it means that you could have fixed them if you had to
.
But first – I’d like to say a big HELLO! to all the folks at CodeBetter, because as of today, I will be cross-posting my blog there. Indeed it’s quite an honor and many thanks to Jeremy Miller for inviting me!
Here’s the updated list of bits:
- Fixed an SP bug that would result in the command type not getting set properly
- Restructured and re-organized the namespacing
- Renamed the DLL to SubSonic.Core, rather than SubSonic (forgot to do that earlier)
- Fixed up the _Settings.tt template to more accurately convey just WTF it is you’re setting
- Fixed a foreign-key naming bug which allowed spaces through
- Fixed a bug with self-referencing tables, wherein a child property could wiggle through and end up having the same name as the parent
- Fixed a commenting issue in the Repositories, which VS didn’t like
You can download the source, if you like, or grab the download here (DLL plus templates). If you have a question – you can leave a note here or (preferably) ask it here, on our mailing list.
Setup Walkthrough
I was asked on the comments of my last post for a walkthrough – so here it is. Setting up SubSonic 3:
1) Download the bits.
2) Open Zip file, and put on your hard drive somewhere
3) Create a project and add an app/web.config file
4) Add a VALID connection string to your favorite DB
5) Edit the _Settings.tt file, letting it know the name of your connection string and whatever Namespace you want for your generated objects:
6) Drag the _Generated file into your project – put it where you like
7) You’re done. Go grab a soda, then start coding.
If you want more information about how to use what’s generated for you, read more here and also read up here.
Many thanks to the folks testing!







