About

SubSonic is a .net open source project developed by Rob Conery and a core team of developers including Eric Kemp, Scott Watermasysk, Jon Galloway, Phil Haack, and Gavin Joyce. The current stable release is version 2.0.3. Nightly builds are available in our SVN respository.

Tags

SubSonic With Web Application and Other Projects

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

  1. 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.
  2. Setup SubCommander in Visual Studio using the Webcast above
  3. Use the generate command to generate your DAL to your project:
  4. sonic.exe generate /out Generated
  5. You might need to refresh your project file tree at this point to make sure the files are added
  6. 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.

Subscribe