Scott Kuhl

You Will Be Assimilated

  Home  |   Contact  |   Syndication    |   Login
  751 Posts | 1 Stories | 558 Comments | 362 Trackbacks

News


Search My Blog

Search GWB



Help CMTA!

Twitter












Tag Cloud


Archives

Post Categories

Image Galleries

My Sites

Here is the full article in PDF format. Complete with bookmarks to each section of the article.

 

Summary

SubSonic is an open-source toolset, created by Rob Conery, as an attempt to put the fun back into programming and just get the job done.  Inspired by Ruby on Rails, SubSonic takes a minimalist approach to coding and emphasizes convention over configuration.  While it takes its inspiration from Ruby on Rails, it is not a port of it.  (Check out MonoRail it that's what you're looking for.)  Instead, SubSonic takes the best ideas of Ruby on Rails and adapts them into the already existing ASP.NET framework.  Currently SubSonic, version 1.05, implements two core features:

ActiveRecord

This design pattern in its simplest form is one class per database table, one object per database row.  SubSonic includes a build-time code generator to implement this pattern that acts as an object-relational mapper eliminating the need to write SQL.  It also includes a dynamic query tool and simple store procedure support to extend the model when needed.

Scaffolding

Admin pages are a chore that scaffolding helps remove.  Simply point a scaffold control at a table and you get the standard grid view and detail view to find and update data in the underlying table.  While not meant to ever be shown to users, it makes a nice, quick and easy developer tool.

posted on Saturday, December 09, 2006 2:35 PM

Feedback

# re: Getting Started with SubSonic (Download PDF) 12/28/2006 3:02 AM Beautiful doc!
Very compliments for this documentation.

Clab

# re: Getting Started with SubSonic (Download PDF) 4/25/2007 8:19 PM b_becks
good... and greate code
hmmm.. ifa I have database table has name MY_ANIMAL$ so how to remove '$' character, if my class name is MY_ANIMAL$ --> this not required (error)
it must MY_ANIMAL,
please help me....
which part of BatchClassGenerator.aspx must be modified
thanks

# re: Getting Started with SubSonic (Download PDF) 4/26/2007 12:34 AM Scott Kuhl
For direct help with specific problems like this I would suggest you post your question to the SubSonic forum: http://actionpack.wekeroad.com/

# re: Getting Started with SubSonic (Download PDF) 10/24/2007 4:21 AM Jason Giles
Thanks for the pdf. It was a very helpful overview during my first-time with SubSonic. I'm now subscribing to the rss feed of your blog!

Keep up the good work :)

-jason

# re: Getting Started with SubSonic (Download PDF) 12/19/2007 4:09 AM Mad
Great article, thanks, just one comment:
with Subsonic 2.0.3 (at least), the test :
int id=1;
Product product = Product.FetchById(id);
if (product.ProductID == id) {
(....)
}
will throw an exception if id is not found, in this case you should use
if (product != null) {
//success
}

Your
if (product.ProductID == id)
test works with the constructor method you describe : Product product = new Product(id);

Kind regards,
Mad

# re: Getting Started with SubSonic (Download PDF) 6/17/2008 3:21 AM alex
I want to look at the pdf but when I click on a link thats supposed to take me there it takes me to some site and the pdf never shows up..

# re: Getting Started with SubSonic (Download PDF) 6/17/2008 7:38 PM Scott Kuhl
Fixed the link. Broken from changing hosting providers.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 2 and 8 and type the answer here: