Posted By


mordecaix7 on 04/22/09

Tagged


Statistics


Viewed 750 times
Favorited by 0 user(s)

Simple SubSonic Collection Query


/ Published in: C#
Save to your folder(s)

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.


Copy this code and paste it in your HTML
  1. ProductsCollection coll = new
  2. ProductsCollection().Where("VendorId", vendorId).Load();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.