Return to Snippet

Revision: 13400
at April 22, 2009 15:27 by mordecaix7

Initial Code
ProductsCollection coll = new 
ProductsCollection().Where("VendorId", vendorId).Load();

Initial URL

Initial Description
This is an example piece of code that will load a SubSonic collection into the "col1" object.  The collection class is told to look for the column "VendorId" in the products table and pull it based based on the matching supplied vendorId.

Initial Title
Simple SubSonic Collection Query

Initial Tags
sql, query

Initial Language