SubSonic is A Super High-fidelity Batman Utility Belt that works up your Data Access (using Linq in 3.0), throws in some much-needed utility functions, and generally speeds along your dev cycle. (http://subsonicproject.com)
The SubSonic code is in C# and the examples say to drag the folder containing the DAL templates into your project. Now that's all fine and dandy for an example and if the project is in C# but what if it's in VB or you want to separate the DAL? The simple thing to do is:
- Add a new C# project to your existing solution.
- Place all the files in the Subsonic DAL template folder into the root project folder - don't put them in a sub-folder.
- Include only the *.ttinclude files into the project (leave the *.tt files excluded).
- Reference the SubSonic.Core.dll.
- Make your changes to the Web.config and Settings.ttinclude files.
- Delete the Default.aspx page (I didn't need it).
- Now include the *.tt files into the project and that should create the class files.
- Build this project only.
- Add a reference to this project in you VB.NET project.
And that's it, you're all set.