Scott Kuhl

Warning: I may have no idea what I am talking about!
posts - 757, comments - 695, trackbacks - 350

My Links

News



Help CMTA!

Twitter







Tag Cloud

Archives

Post Categories

Image Galleries

Getting Started with SubSonic (Download PDF)

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.

Print | posted on Saturday, December 09, 2006 2:35 PM | Filed Under [ SubSonic ]

Feedback

Gravatar

# re: Getting Started with SubSonic (Download PDF)

Very compliments for this documentation.

Clab
12/28/2006 3:02 AM | Beautiful doc!
Gravatar

# re: Getting Started with SubSonic (Download PDF)

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
4/25/2007 8:19 PM | b_becks
Gravatar

# re: Getting Started with SubSonic (Download PDF)

For direct help with specific problems like this I would suggest you post your question to the SubSonic forum: http://actionpack.wekeroad.com/
4/26/2007 12:34 AM | Scott Kuhl
Gravatar

# re: Getting Started with SubSonic (Download PDF)

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
10/24/2007 4:21 AM | Jason Giles
Gravatar

# re: Getting Started with SubSonic (Download PDF)

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
12/19/2007 4:09 AM | Mad
Gravatar

# re: Getting Started with SubSonic (Download PDF)

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..
6/17/2008 3:21 AM | alex
Gravatar

# re: Getting Started with SubSonic (Download PDF)

Fixed the link. Broken from changing hosting providers.
6/17/2008 7:38 PM | Scott Kuhl
Gravatar

# re: Getting Started with SubSonic (Download PDF)

The link is still broken! Unable to download it.
4/19/2009 12:05 AM | Nadarajan
Gravatar

# re: Getting Started with SubSonic (Download PDF)

Just checked it. Hosted on SkyDrive and nothing has changed. It's public and available to everyone. The link worked for me, even in another browser with no authentication.
4/19/2009 7:47 PM | Scott Kuhl
Gravatar

# re: Getting Started with SubSonic (Download PDF)

Web or Windows applications? SubSonic was originally developed to aid in the creation of web applications
6/27/2009 2:14 AM | playtech online casino
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 

Powered by: