You'll need to Generate Some Code to do this, soooo
Let's Watch a Movie!
![]() | Using the Command Line Tool for Non-Web Apps This is a walkthrough of using our command line tool to generate code for you |
Once you dowload and install SubSonic, you'll have a lot of choices on how to use SubSonic as your DAL.
Choice 1: Using SubSonic in your Windows Application
- Create a standard Windows application, and reference SubSonic from the installation directory making sure to setup everything as discussed here. Instead of using a Web.Config, however, you'll be using an App.Config file.
- Setup SubCommander in Visual Studio using the Webcast above
- Use the generate command to generate your DAL to your project:
- sonic.exe generate /out Generated
- You might need to refresh your project file tree at this point to make sure the files are added
- You're done!
Choice 2: Using SubSonic In A Standalone Class Project
If you want to generate your code to a standalone assembly or DAL project, do the exact same as above, except that the project you'll create will be a Class Library, not a Windows Application.

