Massive.DynamicModel.Paged C# (CSharp) Method

Paged() public method

public Paged ( string sql, string primaryKey, string where = "", string orderBy = "", string columns = "*", int pageSize = 20, int currentPage = 1 ) : dynamic
sql string
primaryKey string
where string
orderBy string
columns string
pageSize int
currentPage int
return dynamic
        public virtual dynamic Paged(string sql, string primaryKey, string where = "", string orderBy = "", string columns = "*", int pageSize = 20, int currentPage = 1, params object[] args)
        {
            return BuildPagedResult(sql, primaryKey, where, orderBy, columns, pageSize, currentPage, args);
        }

Same methods

DynamicModel::Paged ( string where = "", string orderBy = "", string columns = "*", int pageSize = 20, int currentPage = 1 ) : dynamic

Usage Example

 public void BasicPaging()
 {
     dynamic artists = new DynamicModel("Chinook", "Artist", "ArtistId");
     dynamic artistsPage2 = artists.Paged(currentPage: 2, pageSize: 5);
     foreach( dynamic item in artistsPage2.Items) {};
 }
All Usage Examples Of Massive.DynamicModel::Paged