Geeks With Blogs

Scott Kuhl Warning: I may have no idea what I am talking about!

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 9, 2006 2:35 PM SubSonic | Back to top


Comments on this post: Getting Started with SubSonic (Download PDF)

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
Very compliments for this documentation.

Clab
Left by Beautiful doc! on Dec 28, 2006 3:02 AM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
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
Left by b_becks on Apr 25, 2007 8:19 PM

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

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
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
Left by Jason Giles on Oct 24, 2007 4:21 AM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
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
Left by Mad on Dec 19, 2007 4:09 AM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
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..
Left by alex on Jun 17, 2008 3:21 AM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
Fixed the link. Broken from changing hosting providers.
Left by Scott Kuhl on Jun 17, 2008 7:38 PM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
The link is still broken! Unable to download it.
Left by Nadarajan on Apr 19, 2009 12:05 AM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
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.
Left by Scott Kuhl on Apr 19, 2009 7:47 PM

# re: Getting Started with SubSonic (Download PDF)
Requesting Gravatar...
Web or Windows applications? SubSonic was originally developed to aid in the creation of web applications
Left by playtech online casino on Jun 27, 2009 2:14 AM

Your comment:
 (will show your gravatar)


Copyright © Scott Kuhl | Powered by: GeeksWithBlogs.net | Join free