Permalink
Browse files

Fixed issue with Paging count SQL - thanks serbrech

  • Loading branch information...
1 parent 34a1aa2 commit b8c27c7bf98e2e1194eace68b5c2e2ece9b9ba47 @subsonic subsonic committed Sep 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Massive.cs
View
@@ -320,7 +320,7 @@ public class DynamicModel : DynamicObject {
/// </summary>
public virtual dynamic Paged(string where = "", string orderBy = "", string columns = "*", int pageSize = 20, int currentPage = 1, params object[] args) {
dynamic result = new ExpandoObject();
- var countSQL = string.Format("SELECT COUNT({0}) FROM {1}", PrimaryKeyField, TableName);
+ var countSQL = string.Format("SELECT COUNT({0}) FROM {1} ", PrimaryKeyField, TableName);
if (String.IsNullOrEmpty(orderBy))
orderBy = PrimaryKeyField;

0 comments on commit b8c27c7

Please sign in to comment.