Posted By

mordecaix7 on 04/22/09


sql query collection easy SubSonic

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


Simple SubSonic Collection Query

 / Published in: C#

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.

  1. ProductsCollection coll = new
  2. ProductsCollection().Where("VendorId", vendorId).Load();

Report this snippet  

You need to login to post a comment.