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

Three aggregate functions are included as static methods.  To get a column average call GetAverage with the table and column name, and an optional Where object.

SubSonic.Query.GetAverage(Product.Schema.Name, Product.Columns.UnitPrice.ToString());

You can also do the same for GetCount and GetSum.

Find the entire series of posts here.

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


Comments on this post: Getting Started with SubSonic - Part 18, Queries - Aggregate Functions

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


Copyright © Scott Kuhl | Powered by: GeeksWithBlogs.net