Geeks With Blogs

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

You can order a query by setting the OrderBy property to either ascending or descending and providing a column name.

query.OrderBy = SubSonic.OrderBy.Asc(Product.Columns.ProductName);

or

query.OrderBy = SubSonic.OrderBy.Desc(Product.Columns.ProductName);

Unfortunately at this time there is no way to order by multiple columns.

Find the entire series of posts here.

Posted on Thursday, December 7, 2006 1:18 PM SubSonic | Back to top


Comments on this post: Getting Started with SubSonic - Part 15, Queries - Ordering

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Scott Kuhl | Powered by: GeeksWithBlogs.net