digipolisantwerp / dataaccess_aspnetcore_deprecated

Generic repository/unit of work framework for ASP.NET Core with Entity Framework.
Other
140 stars 45 forks source link

for Paging how to get record count #35

Closed m2017atTR closed 7 years ago

m2017atTR commented 7 years ago

I am trying to get paged data but pager needs row count also. is there any way to solve this

thanks

m2017atTR commented 7 years ago

ok found it

new DataPage<TEntity>()
            {
                Data = data,
                TotalEntityCount = totalEntityCount,
                PageLength = pageLength,
                PageNumber = pageNumber
            };