You hear it a lot: Convention Over Configuration. This is the Ruby On Rails mantra and had a lot of merit. At its core it means that what you do (especially if you've done it a lot) should carry a lot more weight than having to configure (and reconfigure) things over and over First and foremost - if you want to use SubSonic to access your table, you need to have a Primary Key defined for your table. This is good practice in every case and we need it to do certain things with your table. If you don't have a Primary Key defined, your class won't be generated. Our conventions follow along things that...
|
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. Categories
Tags
Popular
|
Entries categorized 'Setup' ↓SubSonic ConventionsThursday, March 13 2008 - Setup Setting Up And Using Winforms ApplicationsThursday, March 13 2008 - Setup 1.) Add the SubSonic.dll reference, which can usually be found in: C:\Program Files\SubSonic\SubSonic 2.0.3\SubSonic.dll a.) Project->Add Reference b.) Browse tab and go to the path above 2.) Add the System.Web and System.configuration references. Even though this is a WinForm you *MUST* have System.Web or else you will get compile errors demanding such. Same thing with System.Configuration. a.) Project->Add Reference b.) Scroll down to add these, they are usually near the bottom 3.) Create an App.config file. Anything in caps and surrounded by % is something you need to fill out yourself... SubSonic With Web Application and Other ProjectsThursday, March 13 2008 - Setup 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... Magic Code: Using the BuildProviderThursday, March 13 2008 - Setup Let's Watch a Movie... Setting Up Your Website With SubSonic This is a walkthrough of how to get rolling quickly with SubSonic Installing and Using SubSonic 1) Head on over to CodePlex and Download the current release of SubSonic (.msi) 2) Install to the default directory 3) Open up Visual Studio, and select "File > New Website" Once your website is created, right-click on the project and select "Add Reference". A dialog box will pop up - click on the "Browse" tab and select SubSonic.dll from the install location. 4) Once SubSonic is installed, right-click your web project and select "Add New... |
|
| © 2008 SubSonicProject.com. Use of this site is subject to our Terms of Use. All rights reserved. Duplication of this site, in part or in whole, is prohibited without prior written consent. |
